(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-23261c32"],{"249d":function(e,t,r){},"2eae":function(e,t,r){"use strict";var s=r("249d"),a=r.n(s);a.a},"36ad":function(e,t,r){"use strict";var s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"page-header clearfix no_select"},[e._m(0),r("div",{staticClass:"page-right posR"},[r("span",{ref:"username",staticClass:"cursor_pointer",on:{click:function(t){e.userMenuShow=!0}}},[r("i",{staticClass:"icon user"}),e._v(e._s(e.$store.state.login.username))]),r("div",{staticClass:"user-menu",class:{show:e.userMenuShow},style:{left:e.userMenuWidth},on:{click:e.editPassWord}},[e._v("修改密码")]),r("div",{directives:[{name:"show",rawName:"v-show",value:e.userMenuShow,expression:"userMenuShow"}],staticClass:"mask",on:{click:function(t){e.userMenuShow=!1}}}),r("span",{staticClass:"cursor_pointer",on:{click:e.logout}},[r("i",{staticClass:"icon logout"}),e._v("退出登录")])]),r("div",{staticClass:"info"},[e._v("温度: "),r("span",[e._v(e._s(e.temp)+"℃")]),e._v(" 湿度: "),r("span",[e._v(e._s(e.hum)+"%")])]),r("el-dialog",{attrs:{title:"修改密码","modal-append-to-body":!1,visible:e.editPWShow,width:"400px"},on:{"update:visible":function(t){e.editPWShow=t}}},[r("el-form",{ref:"editForm",attrs:{"label-position":"right","label-width":"120px",size:"small",rules:e.rules,model:e.user}},[r("el-form-item",{attrs:{label:"原密码",prop:"oldPassWord"}},[r("el-input",{attrs:{type:"password",size:"small",placeholder:"请输入原密码"},model:{value:e.user.oldPassWord,callback:function(t){e.$set(e.user,"oldPassWord",t)},expression:"user.oldPassWord"}})],1),r("el-form-item",{attrs:{label:"新密码",prop:"newPassWord"}},[r("el-input",{attrs:{type:"password",rule:e.rules.newPassWord,size:"small",placeholder:"请输入原密码"},model:{value:e.user.newPassWord,callback:function(t){e.$set(e.user,"newPassWord",t)},expression:"user.newPassWord"}})],1),r("el-form-item",{attrs:{label:"确认新密码",prop:"newPassWord2"}},[r("el-input",{attrs:{rule:e.rules.newPassWord2,type:"password",size:"small",placeholder:"请输入原密码"},model:{value:e.user.newPassWord2,callback:function(t){e.$set(e.user,"newPassWord2",t)},expression:"user.newPassWord2"}})],1)],1),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.editPWShow=!1}}},[e._v("关 闭")]),r("el-button",{attrs:{type:"primary"},on:{click:e.ok}},[e._v("确 定")])],1)],1)],1)},a=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"page-left"},[r("div",{staticClass:"title"},[e._v("综合电力监控管理系统")])])}],n=(r("ac1f"),r("5319"),r("498a"),{name:"PageHeader",data:function(){var e=this;return{timer:new this.$common.Timeout,temp:34.5,hum:80,userMenuShow:!1,editPWShow:!1,user:{oldPassWord:"",newPassWord:"",newPassWord2:""},pwd:"",rules:{oldPassWord:[{required:!0,message:"原密码不能为空"},{validator:function(t,r,s){var a=e.$common.hex_md5((""+r).trim());a!=e.pwd?s(new Error("原密码不正确")):s()},trigger:"blur"}],newPassWord:[{required:!0,message:"新密码不能为空"}],newPassWord2:[{required:!0,message:"确认密码不能为空"},{validator:function(t,r,s){(""+r).trim()!=e.user.newPassWord?s(new Error("两次输入的新密码不同")):s()},trigger:"blur"}]},isMounted:!1}},computed:{userMenuWidth:function(){if(this.isMounted){var e=this.$refs.username,t=e.getBoundingClientRect();return t.width/2+25+"px"}return 0}},methods:{logout:function(){this.$router.replace({path:"/login"})},getTmpHum:function(){var e=this;this.$api.common.getTmpHum().then((function(t){if(t=JSON.parse(t.data.result),t.code){var r=t.data[0];e.temp=r.tmphum_tmp,e.hum=r.tmphum_hum}}))},getUserPWD:function(){var e=this;this.$api.user.getUserPWD(this.$common.getSession("uid")).then((function(t){t=JSON.parse(t.data.result),t.code&&(e.pwd=t.data[0].Upassword)}))},editPassWord:function(){this.userMenuShow=!1,this.editPWShow=!0},ok:function(){var e=this,t=this.$refs.editForm;t.validate((function(t){t&&e.$api.user.update({UId:e.$common.getSession("uid"),USnId:e.user.newPassWord,Upassword:e.user.newPassWord}).then((function(t){t=JSON.parse(t.data.result),t.code?(e.$message({type:"success",message:t.msg}),e.editPWShow=!1):e.$message({type:"warnning",message:t.msg})})).catch((function(t){e.$message({type:"error",message:t})}))}))}},mounted:function(){var e=this;this.isMounted=!0,this.getUserPWD(),this.timer.start((function(){e.getTmpHum(),e.timer.open()}),1e3)},destroyed:function(){this.timer.stop()}}),i=n,o=(r("688c"),r("2877")),l=Object(o["a"])(i,s,a,!1,null,"62e6bcf8",null);t["a"]=l.exports},3722:function(e,t,r){},"60ed":function(e,t,r){"use strict";var s=r("f5cf"),a=r.n(s);a.a},6769:function(e,t,r){},"688c":function(e,t,r){"use strict";var s=r("3722"),a=r.n(s);a.a},"7c8e":function(e,t,r){"use strict";var s=r("6769"),a=r.n(s);a.a},"7f69":function(e,t,r){"use strict";var s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"my-tree"},e._l(e.treeData,(function(t,s){return r("tree-item",{key:s,attrs:{"tree-data":t,level:0},on:{"tree-click":e.treeClick}})})),1)},a=[],n=r("e2fb"),i={name:"MyTree",components:{TreeItem:n["a"]},data:function(){return{treeData:[{txt:"启动测试",state:"normal",open:!0,children:[{txt:"低压空载启动测试",state:"normal",open:!1,children:[]},{txt:"低压额定载启动测试",state:"normal",open:!1,children:[{txt:"test",state:"normal",open:!1,children:[]}]},{txt:"低压满载启动测试",state:"normal",open:!1,children:[]},{txt:"额定电压空载启动测试",state:"normal",open:!1,children:[]},{txt:"额定电压额定载启动测试",state:"normal",open:!1,children:[]},{txt:"额定电压满载启动测试",state:"normal",open:!1,children:[]}]},{txt:"过压保护测试",state:"normal",open:!1,children:[{txt:"过压保护测试1",state:"normal",open:!1,children:[]},{txt:"过压保护测试2",state:"normal",open:!1,children:[]}]},{txt:"过流保护测试",state:"normal",open:!1,children:[{txt:"过流保护测试1",state:"normal",open:!1,children:[]},{txt:"过流保护测试2",state:"normal",open:!1,children:[]}]},{txt:"功率因素测试",state:"normal",open:!1,children:[]},{txt:"功率测试",state:"normal",open:!1,children:[]}]}},methods:{treeClick:function(e){this.$emit("tree-click",e)}}},o=i,l=(r("2eae"),r("2877")),c=Object(l["a"])(o,s,a,!1,null,"0ad467d3",null);t["a"]=c.exports},a9e3:function(e,t,r){"use strict";var s=r("83ab"),a=r("da84"),n=r("94ca"),i=r("6eeb"),o=r("5135"),l=r("c6b6"),c=r("7156"),u=r("c04e"),d=r("d039"),h=r("7c73"),f=r("241c").f,m=r("06cf").f,p=r("9bf2").f,v=r("58a8").trim,g="Number",w=a[g],x=w.prototype,_=l(h(x))==g,k=function(e){var t,r,s,a,n,i,o,l,c=u(e,!1);if("string"==typeof c&&c.length>2)if(c=v(c),t=c.charCodeAt(0),43===t||45===t){if(r=c.charCodeAt(2),88===r||120===r)return NaN}else if(48===t){switch(c.charCodeAt(1)){case 66:case 98:s=2,a=49;break;case 79:case 111:s=8,a=55;break;default:return+c}for(n=c.slice(2),i=n.length,o=0;o<i;o++)if(l=n.charCodeAt(o),l<48||l>a)return NaN;return parseInt(n,s)}return+c};if(n(g,!w(" 0o1")||!w("0b1")||w("+0x1"))){for(var b,C=function(e){var t=arguments.length<1?0:e,r=this;return r instanceof C&&(_?d((function(){x.valueOf.call(r)})):l(r)!=g)?c(new w(k(t)),r,C):k(t)},P=s?f(w):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),y=0;P.length>y;y++)o(w,b=P[y])&&!o(C,b)&&p(C,b,m(w,b));C.prototype=x,x.constructor=C,i(a,g,C)}},b1f4:function(e,t,r){},baf0:function(e,t,r){"use strict";var s=r("b1f4"),a=r.n(s);a.a},c770:function(e,t,r){"use strict";var s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"content-box"},[r("div",{staticClass:"content-box-title",class:e.getTitlePos},[e._t("title",[e._v(e._s(e.title))]),e._t("titleBarRight")],2),r("div",{staticClass:"content-box-content"},[e._t("default")],2)])},a=[],n={name:"contentBox",props:{titleLeft:{type:Boolean,default:!1},title:{type:String,default:"头部信息"}},computed:{getTitlePos:function(){return this.titleLeft?"txt-left":""}},mounted:function(){}},i=n,o=(r("baf0"),r("2877")),l=Object(o["a"])(i,s,a,!1,null,"4f3152a5",null);t["a"]=l.exports},ce2f:function(e,t,r){"use strict";var s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"page-nav"},[r("div",{staticClass:"page-nav-list"},[r("ul",{staticClass:"clearfix"},e._l(e.navs,(function(t,s){return r("li",{key:s,class:{"active-nav":s==e.activeIndex},on:{click:function(r){return e.navClick(t)}}},[r("div",{staticClass:"main_menu"},[t.blank?r("a",{attrs:{href:t.url,target:"_self"}},[e._v(e._s(t.txt))]):r("router-link",{attrs:{to:t.router}},[e._v(e._s(t.txt))]),t.childrens?r("div",{staticClass:"sub_menu"},[r("ul",e._l(t.childrens,(function(t){return r("li",{key:t.txt,on:{click:function(r){return e.navClick(t)}}},[r("router-link",{attrs:{to:t.router}},[e._v(e._s(t.txt))])],1)})),0)]):e._e()],1)])})),0)])])},a=[],n=(r("4de4"),r("c975"),{name:"PageNav",data:function(){return{activeIndex:0,navs:[{txt:"综合管理",name:"General",key:"general",router:"/general/index"},{txt:"1#~4#蓄电池组",name:"Batts",key:"batts",router:"",url:"/DyEnvir_system/big_screen/index.html",blank:!0},{txt:"1#~4#水冷交流电阻负载",name:"MainLoad",key:"load",router:"/load/main"},{txt:"1号、2号大功率整流电源",name:"RectifierMain",key:"rectifier",router:"/rectifier/main"},{txt:"3号大功率整流电源",key:"chargepower",name:"chargePower",router:"",childrens:[{txt:"电源主界面",name:"main_chargePower",router:"/chargepower/main"},{txt:"A机组串联运行",router:"/chargepower/alone/A/series"},{txt:"A机组并联运行",router:"/chargepower/alone/A/parallel"},{txt:"B机组串联运行",router:"/chargepower/alone/B/series"},{txt:"B机组并联运行",router:"/chargepower/alone/B/parallel"},{txt:"4机组串联运行",router:"/chargepower/series"},{txt:"4机组并联运行",router:"/chargepower/parallel"},{txt:"2串2并运行",router:"/chargepower/mixture"}]},{txt:"电机加载试验系统",name:"Motor",key:"motor",router:"/motor/index"},{txt:"1号~3号水冷装置",name:"WaterCoolingList",router:"/watercooling/list",key:"watercooling"},{txt:"用户管理",name:"user",router:"",key:"user",childrens:[{txt:"用户信息",name:"UserInfo",router:"/user/info"},{txt:"权限管理",name:"UserPower",router:"/user/power"}]},{txt:"文件管理",name:"files",router:"/files",key:"files"},{txt:"系统日志",name:"syslog",router:"/syslog",key:"syslog"}]}},mounted:function(){var e=this;if(this.$root.upDateAuth(),"superuser"!=this.$store.state.login.username){var t=this.navs.filter((function(e){return"用户管理"!=e.txt}));this.navs=t}this.changeActive(),this.$router.afterEach((function(t,r){e.changeActive()}))},methods:{initNavActive:function(){for(var e=0;e<this.navs.length;e++)this.navs[e].active=!1},navClick:function(e){e.active||e.childrens&&e.childrens.length||this.initNavActive()},changeActive:function(){for(var e=0,t=this.navs.length;e<t;e++)if(this.$route.path.indexOf(this.navs[e].key)>-1){this.navs[e].active=!0,this.activeIndex=e;break}}}}),i=n,o=(r("7c8e"),r("2877")),l=Object(o["a"])(i,s,a,!1,null,"12df84a5",null);t["a"]=l.exports},e2fb:function(e,t,r){"use strict";var s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"tree-item",class:{leaf:!e.treeData.children.length,"is-child":e.level>0}},[r("div",{staticClass:"tree-title",style:e.getPadding,on:{click:function(t){return e.treeClick(t)}}},[r("span",{staticClass:"box"},[e.getChildren?r("span",{class:e.getOpen}):e._e()]),e.showState?r("span",{staticClass:"home-state icon-status",class:e.getHomeState}):e._e(),r("span",{staticClass:"tree-title-txt"},[e._v(e._s(e.treeData.txt))])]),e.getChildren?r("div",{staticClass:"tree-child",class:e.isShow},e._l(e.treeData.children,(function(t,s){return r("tree-item",{key:s,attrs:{"tree-data":t,"show-state":e.showState,level:e.getLevel},on:{"tree-click":e.childTreeClick}})})),1):e._e()])},a=[],n=(r("4160"),r("a9e3"),r("159b"),{name:"TreeItem",props:{treeData:{type:Object,default:function(){return{}}},level:{type:Number},showState:{type:Boolean,default:!0}},data:function(){return{}},methods:{treeClick:function(e){if(this.treeData.open=!this.treeData.open,this.$emit("tree-click",this.treeData),!this.getChildren){var t=e.target;if(t.classList.contains("tree-item"))t.classList.add("active");else{var r=this.$common.getParentsByClassName(t,"tree-item");r&&(document.querySelectorAll(".tree-item").forEach((function(e,t,r){e.classList.remove("active")})),r.classList.add("active"),r.classList.contains("is-child")&&this.$common.getParentsByClassName(r,"tree-item").classList.add("active"))}}},childTreeClick:function(e){e.children.length?this.$emit("tree-click",e):this.$emit("leaf-click",e)}},computed:{getOpen:function(){return this.treeData.open?["icon-triangle","rotate"]:["icon-triangle"]},getLevel:function(){var e=this.level+1;return e},getPadding:function(){return{paddingLeft:.18*this.level+"rem"}},getHomeState:function(){var e=this.treeData.state,t="";switch(e){case"warning":t="warning";break;case"danger":t="danger";break;case"off":t="off";break;default:t="normal"}return t},getChildren:function(){var e=!1,t=this.treeData.children;return t&&t.length&&(e=!0),e},isShow:function(){return this.treeData.open?"child-show":"child-hide"}}}),i=n,o=(r("60ed"),r("2877")),l=Object(o["a"])(i,s,a,!1,null,"f62a28da",null);t["a"]=l.exports},f5cf:function(e,t,r){}}]);
|