(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(e,t,n){e.exports=n("56d7")},"07c5":function(e,t,n){"use strict";var a=function(){var e=this,t=e._self._c;return t("el-drawer",{ref:"drawer",attrs:{visible:e.drawerVisible,"before-close":e.drawerClose,size:"768px",direction:"rtl",modal:!1,"append-to-body":!0},on:{"update:visible":function(t){e.drawerVisible=t}}},[t("div",{staticClass:"node-log-info"},[t("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},e._l(e.clientList,(function(n){return t("el-tab-pane",{key:n.ID,attrs:{label:n.client_ip,name:n.client_ip}},[t("span",{attrs:{slot:"label"},slot:"label"},[t("span",[e._v(e._s(n.client_ip))]),t("el-badge",{attrs:{value:n.count&&n.count||""}})],1),t("div",{staticClass:"clearFix"},[t("el-button",{staticClass:"flr",attrs:{size:"mini"},on:{click:e.handleEmpty}},[e._v("清 空")]),t("el-tooltip",{attrs:{offset:"-2",effect:"dark",placement:"top-start"}},[n.wsCommandList&&n.wsCommandList.length?t("div",{staticClass:"clinet-title"},[e._v(" > "+e._s(n.wsCommandList[n.wsCommandList.length-1])+" ")]):e._e(),t("div",{attrs:{slot:"content"},slot:"content"},[n.wsCommandList&&n.wsCommandList.length?t("div",[e._v(" "+e._s(n.wsCommandList[n.wsCommandList.length-1])+" ")]):e._e()])])],1),t("div",{ref:"content",refInFor:!0,class:["clinet-content",{top:n.wsCommandList&&0===n.wsCommandList.length}]},e._l(e.wsObj,(function(n,a,r){return t("div",{key:r},[n.result[0].client_ip===e.activeName?t("div",[t("div",{staticClass:"client-command"},[e._v(" > "+e._s(n.result[0].command)+" ")]),e._l(n.result,(function(n,a){return t("div",{key:a,staticClass:"client-info"},[e._v(" "+e._s(n.content)+" "),-1===n.exec_type?t("div",{staticClass:"client-end"},[e._v("END")]):e._e()])}))],2):e._e()])})),0)])})),1)],1)])},r=[],i=(n("cfce"),n("0894"),n("6efb"),n("153a"),n("f8a5"),n("ef1f"),n("d48b"),n("b1bd")),s={props:{drawer:{type:Boolean,default:!1},websocketUrl:{type:String,default:""},platform:{type:String,default:"qfinger"},namespace:{type:String,default:null}},data:function(){return{apiMap:null,clientList:[],wsList:[],wsObj:{},activeName:"",drawerVisible:!1,websock:null}},watch:{drawer:function(e){this.drawerVisible=e,e&&this.getClientList()}},created:function(){var e=this;this.apiMap=Object(i["a"])(this.platform),this.$nextTick((function(){e.websocketUrl&&e.initWebSocket()}))},beforeDestroy:function(){this.websock&&this.websock.close()},updated:function(){var e=this;this.$nextTick((function(){var t=e.$refs.content;t&&e.clientList.map((function(n,a){e.activeName===n.client_ip&&(t[a].scrollTop=t[a].scrollHeight)}))}))},methods:{open:function(e){this.drawerVisible=!0,this.getClientList()},getClientList:function(){var e=this;this.clientList.length?this.apiMap.getClientList({namespace:this.namespace}).then((function(t){e.clientList=t.info})):this.apiMap.getClientList({namespace:this.namespace}).then((function(t){e.clientList=t.info,e.activeName=e.clientList[0].client_ip}))},drawerClose:function(e){e(),this.closeDrawer()},closeDrawer:function(){this.$emit("closeDrawer"),this.drawerVisible=!1},handleClick:function(e){},handleEmpty:function(){this.wsList=[],this.wsObj={}},initWebSocket:function(){this.wsList=[],this.wsObj={},this.websock=new WebSocket(this.websocketUrl),this.websock.onmessage=this.websocketonmessage,this.websock.onclose=this.websocketclose,this.websock.onerror=this.websocketerror},websocketonmessage:function(e){var t=this,n=JSON.parse(JSON.parse(e.data).data);if(n.exec_id){if(1===n.exec_type&&this.getClientList(),1===n.exec_type||0===n.exec_type||-1===n.exec_type){var a={};this.wsList.push(n),this.$emit("handleWsList",this.wsList),this.wsList.map((function(e){t.activeName=e.client_ip;var n=e.exec_id;a[n]||(a[n]={exec_id:n,result:[]}),a[n].result.push(e)})),this.wsObj=Object.values(a),this.$nextTick((function(){var e=t.$refs.content;e&&t.clientList.map((function(n,a){t.activeName===n.client_ip&&(e[a].scrollTop=e[a].scrollHeight)}))}))}else this.$emit("handleGetClineTime",n);this.clientList.map((function(e,n){e.count=0;var a=[];for(var r in t.wsObj)e.client_ip===t.wsObj[r].result[0].client_ip&&(t.$set(t.clientList[n],"count",e.count+=1),t.wsObj[r].result.map((function(r){1===r.exec_type&&t.activeName===r.client_ip&&(a.push(r.command),t.$set(t.clientList[n],"wsCommandList",a)),-1===r.exec_type&&t.$set(t.clientList[n],"count",e.count-=1)})))}))}else n.port_status?this.$bus.$emit("handleGetTestStatus",n):this.$bus.$emit("handleGetConfigStatus",n)},websocketclose:function(e){var t=this;this.websock&&this.websock.close(),setTimeout((function(){t.initWebSocket()}),5e3)},websocketerror:function(e){}}},o=s,c=(n("679a"),n("2be6")),u=Object(c["a"])(o,a,r,!1,null,"6c20668c",null);t["a"]=u.exports},"08fb":function(e,t,n){"use strict";n("1915")},"0bc9":function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-pieChart",use:"icon-pieChart-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(o);t["default"]=o},"0c6d":function(e,t,n){"use strict";var a=n("0b38"),r=(n("d331b"),n("0894"),n("ef1f"),n("bc3a")),i=n.n(r),s=n("2b0e"),o=(n("5c96"),n("4360")),c=n("a18c"),u=n("5f87"),l=localStorage.getItem("url")||"",d="";-1!==l.indexOf("/qpaasEoms")&&(d="/qpaasEoms");var f=i.a.create({baseURL:""+d,timeout:0});f.interceptors.request.use((function(e){return o["a"].getters.token&&(e.headers["Authorization"]="Bearer "+Object(u["a"])()),e}),(function(e){return Promise.reject(e)})),f.interceptors.response.use((function(e){var t=e.data;return 200!==t.code?402===t.code?(o["a"].commit("userState/setIsAuth",!1),c["a"].push("/static/dashboard"),!1):401===t.code?(Object(u["b"])(),o["a"].dispatch("userState/state",{keyName:"resetState",value:""}),s["default"].prototype.$message({showClose:!0,type:"error",message:"登录用户身份变动,请重新登录"}),c["a"].push("/static/login"),!1):("/user/register/init"!==e.config.url&&s["default"].prototype.$message({message:t.msg||"数据异常! 请重试",type:"error",duration:0,showClose:!0}),Promise.reject(t.msg||"Error")):t}),(function(e){return s["default"].prototype.$message({message:e.message,type:"error",duration:0,showClose:!0}),Promise.reject(e)}));var p=f,h=n("a6ed"),m=n.n(h),g={get:function(e,t){var n="";for(var a in t)""!==n&&(n+="&"),n+=a+"="+encodeURIComponent(t[a]);return""!==n&&(n="?"+n),p({url:e+n,method:"get"})},post:function(e,t){var n=m.a.stringify(t);return p({url:e,method:"post",data:n})},put:function(e,t){var n=m.a.stringify(t);return p({url:e,method:"put",data:n})},delete:function(e,t){var n="";for(var a in t)""!==n&&(n+="&"),n+=a+"="+encodeURIComponent(t[a]);return""!==n&&(n="?"+n),p({url:e+n,method:"delete"})},postJson:function(e,t){return p({url:e,method:"post",data:JSON.stringify(t),headers:{"Content-Type":"application/json"}})},putJson:function(e,t,n){return p({url:e,method:"put",params:n,data:JSON.stringify(t),headers:{"Content-Type":"application/json"}})},deleteJson:function(e,t,n){return p({url:e,method:"delete",params:n,data:t})},postFormData:function(e,t){return p({url:e,method:"post",data:t,headers:{"Content-Type":"multipart/form-data; boundary=----WebKitFormBoundaryTGmYk4BsaUXlN2Wp"}})},postFileData:function(e,t,n){return p(Object(a["a"])(Object(a["a"])({},{url:e,method:"post",data:t}),n))}};t["a"]=g},1:function(e,t){},"10c7":function(e,t,n){},"117c":function(e,t,n){},"12e3":function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-arrow-left",use:"icon-arrow-left-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(o);t["default"]=o},1453:function(e,t,n){"use strict";n("edfd")},"18f0":function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-link",use:"icon-link-usage",viewBox:"0 0 128 128",content:''});s.a.add(o);t["default"]=o},1915:function(e,t,n){},"1db3":function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-cpu",use:"icon-cpu-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(o);t["default"]=o},"213d":function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-updateVersion",use:"icon-updateVersion-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(o);t["default"]=o},2168:function(e,t,n){},"216d":function(e,t,n){},2331:function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-checked",use:"icon-checked-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(o);t["default"]=o},"235f":function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-date",use:"icon-date-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(o);t["default"]=o},"2a3d":function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-password",use:"icon-password-usage",viewBox:"0 0 128 128",content:''});s.a.add(o);t["default"]=o},"2ac5":function(e,t,n){"use strict";n("4de2")},"30a9":function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-system",use:"icon-system-usage",viewBox:"0 0 1028 1024",content:''});s.a.add(o);t["default"]=o},"30c3":function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-example",use:"icon-example-usage",viewBox:"0 0 128 128",content:''});s.a.add(o);t["default"]=o},"31c4":function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-userManager",use:"icon-userManager-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(o);t["default"]=o},3214:function(e,t,n){"use strict";n("a587")},3488:function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-return",use:"icon-return-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(o);t["default"]=o},3495:function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-tool",use:"icon-tool-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(o);t["default"]=o},"34af":function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-white",use:"icon-white-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(o);t["default"]=o},3657:function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-systemManagement",use:"icon-systemManagement-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(o);t["default"]=o},"3c85":function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-alarm",use:"icon-alarm-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(o);t["default"]=o},"3cdf":function(e,t,n){"use strict";n("5e30")},"3fc8":function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-settings",use:"icon-settings-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(o);t["default"]=o},4360:function(e,t,n){"use strict";var a=n("2b0e"),r=n("2f62"),i={sidebar:function(e){return e.app.sidebar},device:function(e){return e.app.device},wsmsg:function(e){return e.app.wsmsg},token:function(e){return e.userState.token},userId:function(e){return e.userState.userId},userName:function(e){return e.userState.userName},realName:function(e){return e.userState.realName},avatar:function(e){return e.userState.avatar},roleId:function(e){return e.userState.roleId},authInfo:function(e){return e.userState.authInfo},userInfo:function(e){return e.userState.userInfo},authKey:function(e){return e.userState.authKey},isCollapse:function(e){return e.userState.isCollapse},roleList:function(e){return e.userState.roleList},version:function(e){return e.userState.version},clientList:function(e){return e.userState.clientList},authStatus:function(e){return e.userState.authStatus},wsVisible:function(e){return e.app.wsVisible},isAuth:function(e){return e.userState.isAuth},isAuthed:function(e){return e.userState.isAuthed}},s=i,o=n("7d89"),c=n.n(o),u=n("9ec3"),l=n.n(u),d={sidebar:{opened:!c.a.get("sidebarStatus")||!!+c.a.get("sidebarStatus"),withoutAnimation:!1},device:"desktop",wsVisible:!1,wsmsg:""},f={TOGGLE_WS_VISIBLE:function(e,t){e.wsVisible=l.a.isBoolean(t)?t:!e.wsVisible},TOGGLE_SIDEBAR:function(e){e.sidebar.opened=!e.sidebar.opened,e.sidebar.withoutAnimation=!1,e.sidebar.opened?c.a.set("sidebarStatus",1):c.a.set("sidebarStatus",0)},CLOSE_SIDEBAR:function(e,t){c.a.set("sidebarStatus",0),e.sidebar.opened=!1,e.sidebar.withoutAnimation=t},TOGGLE_DEVICE:function(e,t){e.device=t},SEND_WSMSG:function(e,t){e.wsmsg=t}},p={toggleWs:function(e,t){var n=e.commit;n("TOGGLE_WS_VISIBLE",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)}},h={namespaced:!0,state:d,mutations:f,actions:p},m=n("83d6"),g=n.n(m),v=g.a.showSettings,b=g.a.fixedHeader,y=g.a.sidebarLogo,k={showSettings:v,fixedHeader:b,sidebarLogo:y},w={CHANGE_SETTING:function(e,t){var n=t.key,a=t.value;e.hasOwnProperty(n)&&(e[n]=a)}},_={changeSetting:function(e,t){var n=e.commit;n("CHANGE_SETTING",t)}},C={namespaced:!0,state:k,mutations:w,actions:_},x=n("5f87"),S=function(){return{token:Object(x["a"])(),userId:0,userName:"",realName:"",avatar:"",roleId:0,userInfo:{},authInfo:{},roleList:[],version:"",clientList:[],authStatus:"",isCollapse:!1,isAuth:!0,authKey:"",isAuthed:!1}},L=S(),j={resetState:function(e){Object.assign(e,S())},setToken:function(e,t){e.token=t},setIsCollapse:function(e,t){e.isCollapse=t},setUserId:function(e,t){e.userId=t},setUserName:function(e,t){e.userName=t},setRealName:function(e,t){e.realName=t},setAvater:function(e,t){e.avatar=t},setRoleId:function(e,t){e.roleId=t},setUserInfo:function(e,t){e.userInfo=t},setRoleList:function(e,t){e.roleList=t},setAuthInfo:function(e,t){e.authInfo=t},setAuthKey:function(e,t){e.authKey=t},setVersion:function(e,t){e.version=t},setClientList:function(e,t){e.clientList=t},setAuthStatus:function(e,t){e.authStatus=t},setIsAuth:function(e,t){e.isAuth=t},setIsAuthed:function(e,t){e.isAuthed=t}},I={state:function(e,t){var n=e.commit;n(t.keyName,t.value)}},D={namespaced:!0,state:L,mutations:j,actions:I};a["default"].use(r["a"]);var M=new r["a"].Store({modules:{app:h,settings:C,userState:D},getters:s});t["a"]=M},"44a5":function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-updateSystem",use:"icon-updateSystem-usage",viewBox:"0 0 128 128",content:'\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});s.a.add(o);t["default"]=o},4678:function(e,t,n){var a={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-ps":"4c98","./ar-ps.js":"4c98","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn-bd":"9686","./bn-bd.js":"9686","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-in":"ec2e","./en-in.js":"ec2e","./en-nz":"6f50","./en-nz.js":"6f50","./en-sg":"b7e9","./en-sg.js":"b7e9","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-mx":"b5b7","./es-mx.js":"b5b7","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fil":"d69a","./fil.js":"d69a","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-deva":"aaf2","./gom-deva.js":"aaf2","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku-kmr":"7558","./ku-kmr.js":"7558","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./oc-lnc":"167b","./oc-lnc.js":"167b","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tk":"5aff","./tk.js":"5aff","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-mo":"3a6c","./zh-mo.js":"3a6c","./zh-tw":"90ea","./zh-tw.js":"90ea"};function r(e){var t=i(e);return n(t)}function i(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}r.keys=function(){return Object.keys(a)},r.resolve=i,e.exports=r,r.id="4678"},4721:function(e,t,n){"use strict";n("b96c")},4758:function(e,t,n){"use strict";n("77c2")},"47f1":function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-table",use:"icon-table-usage",viewBox:"0 0 128 128",content:''});s.a.add(o);t["default"]=o},"47ff":function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-message",use:"icon-message-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(o);t["default"]=o},"49ef":function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-migration",use:"icon-migration-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(o);t["default"]=o},"4dae":function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-download",use:"icon-download-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(o);t["default"]=o},"4de2":function(e,t,n){},"4df5":function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-eye",use:"icon-eye-usage",viewBox:"0 0 128 64",content:''});s.a.add(o);t["default"]=o},5084:function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-deploy",use:"icon-deploy-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(o);t["default"]=o},"51ff":function(e,t,n){var a={"./accessControl.svg":"f2db","./add.svg":"c2a3","./alarm.svg":"3c85","./arrow-left.svg":"12e3","./backup.svg":"721d","./check.svg":"f75a","./checked.svg":"2331","./cpu.svg":"1db3","./dashboard.svg":"f782","./data-alarm.svg":"9b63","./data.svg":"5a0a","./date.svg":"235f","./delete.svg":"59a1","./deploy.svg":"5084","./download.svg":"4dae","./edit.svg":"aa46","./example.svg":"30c3","./eye-open.svg":"d7ec","./eye.svg":"4df5","./form.svg":"eb1b","./home.svg":"6bbe","./image.svg":"8736","./imageCount.svg":"c151","./iptables.svg":"c6e3","./link.svg":"18f0","./log.svg":"fea0","./management.svg":"d4ef1","./message.svg":"47ff","./migration.svg":"49ef","./nested.svg":"dcf8","./news.svg":"c862","./password.svg":"2a3d","./pie.svg":"9ab6","./pieChart.svg":"0bc9","./productImport.svg":"93f1","./return.svg":"3488","./script.svg":"7130","./server.svg":"cda5","./settings.svg":"3fc8","./system.svg":"30a9","./systemManagement.svg":"3657","./table.svg":"47f1","./test.svg":"fe8d","./tool.svg":"3495","./tree.svg":"93cd","./update.svg":"6f6a","./updateFail.svg":"ef73","./updateSuccess.svg":"b031","./updateSystem.svg":"44a5","./updateVersion.svg":"213d","./upload.svg":"9d82","./uploadScript.svg":"919b","./user.svg":"b3b5","./userManager.svg":"31c4","./warning.svg":"7e6f","./white.svg":"34af","./whiteNone.svg":"7bf9","./zip.svg":"8aa6"};function r(e){var t=i(e);return n(t)}function i(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}r.keys=function(){return Object.keys(a)},r.resolve=i,e.exports=r,r.id="51ff"},"530e":function(e,t,n){},"56d7":function(e,t,n){"use strict";n.r(t);n("9531"),n("26d3"),n("2007"),n("41ab"),n("0894");var a=n("2b0e"),r=(n("d7a5"),n("5c96")),i=n.n(r),s=(n("0fae"),n("f0d9")),o=n.n(s),c=n("da1e"),u=(n("cfce"),n("6efb"),n("153a"),n("ef1f"),n("4360")),l=(a["default"].directive("hidden",{inserted:function(e,t){function n(e){var t=u["a"].getters.roleList,n=u["a"].getters.userInfo.user_role,a=[];if(null===t||void 0===t||t.map((function(e){a.push(e.method+"_"+e.url)})),-1!==a.indexOf(e)){var r,i=Object(c["a"])(t);try{for(i.s();!(r=i.n()).done;){var s=r.value,o=s.method+"_"+s.url;if(o===e&&s.role_id===n)return!0}}catch(l){i.e(l)}finally{i.f()}return!1}return!0}n(t.value)||e.parentNode&&e.parentNode.removeChild(e)}}),null),d={install:function(e){e.prototype.$message=function(e){return l&&!e.keepPrevious&&l.close(),l=Object(r["Message"])(e),l},["success","warning","info","error"].forEach((function(t){e.prototype.$message[t]=function(n){return"string"===typeof n&&(n={message:n}),n.type=t,e.prototype.$message(n)}}))}},f=(n("b20f"),function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"app"}},[t("router-view")],1)}),p=[],h={name:"App",created:function(){}},m=h,g=n("2be6"),v=Object(g["a"])(m,f,p,!1,null,null,null),b=v.exports,y=n("a18c"),k=n("36aa"),w=n.n(k),_=(n("7e7d"),n("918c"),function(){var e=this,t=e._self._c;return e.isExternal?t("div",e._g({staticClass:"svg-external-icon svg-icon",style:e.styleExternalIcon},e.$listeners)):t("svg",e._g({class:e.svgClass,attrs:{"aria-hidden":"true"}},e.$listeners),[t("use",{attrs:{"xlink:href":e.iconName}})])}),C=[],x=(n("868d"),n("61f7")),S={name:"SvgIcon",props:{name:{type:String,required:!0},className:{type:String,default:""}},computed:{isExternal:function(){return Object(x["a"])(this.name)},iconName:function(){return"#icon-".concat(this.name)},svgClass:function(){return this.className?"svg-icon "+this.className:"svg-icon"},styleExternalIcon:function(){return{mask:"url(".concat(this.name,") no-repeat 50% 50%"),"-webkit-mask":"url(".concat(this.name,") no-repeat 50% 50%")}}}},L=S,j=(n("ac48"),Object(g["a"])(L,_,C,!1,null,"4adbab3c",null)),I=j.exports;a["default"].component("svg-icon",I);var D=n("51ff"),M=function(e){return e.keys().map(e)};M(D);var T=n("a74e"),A=n("42c2"),z=(n("fa03"),n("2aa5"),n("32f5"),n("fa8c"),n("06a2")),O=n.n(z),P=(n("a7b20"),n("5f87")),V=(n("d86f"),n("83d6")),B=n.n(V);B.a.title;var F=n("c1fb");O.a.configure({showSpinner:!1});var H=["/static/auth","/static/login"];y["a"].beforeEach(function(){var e=Object(A["a"])(Object(T["a"])().mark((function e(t,n,a){var i,s;return Object(T["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(O.a.start(),setTimeout((function(){var e=localStorage.getItem("projectName"),n=e&&"undefined"!==e?e:"运维平台",a=t.meta.title;return document.title=a?n+"-"+a:n}),500),i=Object(P["a"])(),!i){e.next=39;break}if("/static/login"!==t.path){e.next=9;break}a({path:"/"}),O.a.done(),e.next=37;break;case 9:if(u["a"].getters,s=u["a"].getters.userName,!s){e.next=15;break}a(),e.next=37;break;case 15:return e.prev=15,e.next=18,Object(F["M"])().then((function(e){y["a"].options.routes.forEach((function(t){"/static/userManagement"===t.path&&t.children.forEach((function(t){"/static/userManagement/authList"===t.path&&9!==e.info.user_role&&(t.hidden=!0)}))})),u["a"].dispatch("userState/state",{keyName:"setUserInfo",value:e.info}),u["a"].dispatch("userState/state",{keyName:"setUserName",value:e.info.user_name}),u["a"].dispatch("userState/state",{keyName:"setRealName",value:e.info.real_name}),u["a"].dispatch("userState/state",{keyName:"setRoleId",value:e.info.user_role}),u["a"].dispatch("userState/state",{keyName:"setUserId",value:e.info.user_id}),Object(F["B"])({role_id:e.info.user_role}).then((function(e){var t;null===(t=e.info)||void 0===t||t.map((function(e){e.url=e.url.substring(1).replace(/\//g,"_")})),u["a"].dispatch("userState/state",{keyName:"setRoleList",value:e.info})}))}));case 18:return e.next=20,Object(F["R"])().then((function(e){u["a"].dispatch("userState/state",{keyName:"setVersion",value:e.info})}));case 20:return e.next=22,Object(F["j"])().then((function(e){var t;localStorage.setItem("projectName",null===(t=e.info)||void 0===t?void 0:t.project_name),u["a"].dispatch("userState/state",{keyName:"setAuthInfo",value:e.info}),u["a"].dispatch("userState/state",{keyName:"setIsAuthed",value:!0})}));case 22:return e.next=24,Object(F["q"])().then((function(e){u["a"].dispatch("userState/state",{keyName:"setAuthKey",value:e.info})}));case 24:return e.next=26,Object(F["l"])().then((function(e){u["a"].dispatch("userState/state",{keyName:"setClientList",value:e.info})}));case 26:return e.next=28,Object(F["k"])().then((function(e){u["a"].dispatch("userState/state",{keyName:"setAuthStatus",value:e.info})}));case 28:a(),e.next=37;break;case 31:return e.prev=31,e.t0=e["catch"](15),e.next=35,u["a"].dispatch("userState/state",{keyName:"resetState",value:""});case 35:r["Message"].error(e.t0||"Has Error"),O.a.done();case 37:e.next=43;break;case 39:if("/register"!==t.path){e.next=42;break}return a(),e.abrupt("return",!1);case 42:-1!==H.indexOf(t.path)?a():(a(),O.a.done());case 43:case"end":return e.stop()}}),e,null,[[15,31]])})));return function(t,n,a){return e.apply(this,arguments)}}()),y["a"].afterEach((function(){O.a.done()}));var N=n("5f2b"),R=n("bfc1"),$=n.n(R),E=null,U=function(e){E&&E.close(),"error"===e.type&&(e.showClose=!0,e.duration=0),E=Object(r["Message"])(e)};["error","success","info","warning"].forEach((function(e){U[e]=function(t){return"string"===typeof t&&(t={message:t}),t.type=e,U(t)}}));var J,Z=U,q=n("0a48"),G=n("c1df"),W=n.n(G),K=n("869f"),Y=n.n(K),Q=(n("7283"),0),X=function(){J=r["Loading"].service({lock:!0,spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0)"})},ee=function(){J.close()},te=function(){0===Q&&X(),Q+=1},ne=function(){Q<=0||(Q-=1,0===Q&&ee())},ae=n("9ec3"),re=n.n(ae),ie=n("33f7"),se=n.n(ie);a["default"].use(w.a);var oe=N["a"].prototype.push;N["a"].prototype.push=function(e){return oe.call(this,e).catch((function(e){return e}))},a["default"].use(N["a"]),a["default"].use(i.a,{locale:o.a}),a["default"].use(d);var ce=window.location.pathname;localStorage.setItem("url",ce),a["default"].prototype.$bus=new a["default"],a["default"].prototype.clipboard=$.a,a["default"].prototype.$message=Z,a["default"].prototype.$echarts=q,a["default"].prototype.$moment=W.a,W.a.locale("zh-cn"),a["default"].use(Y.a),a["default"].prototype.$showLoading=te,a["default"].prototype.$hideLoading=ne,a["default"].prototype._=re.a,a["default"].use(se.a,{namedConfigurations:{plaintext:{USE_PROFILES:{html:!1}}}}),a["default"].config.productionTip=!1,new a["default"]({el:"#app",router:y["a"],store:u["a"],render:function(e){return e(b)}})},"58d2":function(e,t,n){},"59a1":function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-delete",use:"icon-delete-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(o);t["default"]=o},"5a0a":function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-data",use:"icon-data-usage",viewBox:"0 0 64.003 64",content:'\r\n \r\n'});s.a.add(o);t["default"]=o},"5e30":function(e,t,n){},"5ea4":function(e,t,n){"use strict";n("81e6")},"5f87":function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return c}));var a=n("7d89"),r=n.n(a),i="userLoginToken";function s(){return r.a.get(i)}function o(e){return r.a.set(i,e)}function c(){return r.a.remove(i)}},"61f7":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));n("2aa5"),n("dee9"),n("b55a");function a(e){return/^(https?:|mailto:|tel:)/.test(e)}},"679a":function(e,t,n){"use strict";n("ca15")},"6bbe":function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-home",use:"icon-home-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(o);t["default"]=o},"6f6a":function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-update",use:"icon-update-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(o);t["default"]=o},7037:function(e,t,n){"use strict";n("2168")},7130:function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-script",use:"icon-script-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(o);t["default"]=o},"71a0":function(e,t,n){"use strict";n("bf0c")},"721d":function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-backup",use:"icon-backup-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(o);t["default"]=o},"77c2":function(e,t,n){},"7bf9":function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-whiteNone",use:"icon-whiteNone-usage",viewBox:"0 0 100 86.259",content:'\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});s.a.add(o);t["default"]=o},"7e6f":function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-warning",use:"icon-warning-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(o);t["default"]=o},"7fc8":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n("0b38"),r=n("f5f2"),i=n("30c6"),s=(n("d86f"),n("a6ed")),o=n.n(s),c=function(){function e(t){Object(r["a"])(this,e),this.request=t}return Object(i["a"])(e,[{key:"get",value:function(e,t,n){var r=o.a.stringify(n||{});return this.request({url:"/iaas/ns/private/get/request",method:"get",params:Object(a["a"])(Object(a["a"])({},t),{},{url:"".concat(e).concat(r?"?"+r:"")})})}},{key:"delete",value:function(e,t,n){var r=o.a.stringify(n||{});return this.request({url:"/iaas/ns/private/delete/form/request",method:"delete",data:Object(a["a"])(Object(a["a"])({},t),{},{url:"".concat(e).concat(r?"?"+r:"")})})}},{key:"deleteJson",value:function(e,t,n){return this.request({url:"/iaas/ns/private/delete/json/request",method:"delete",data:Object(a["a"])(Object(a["a"])({url:e},t),{},{data:Object(a["a"])({},n)})})}},{key:"post",value:function(e,t,n){return this.request({url:"/iaas/ns/private/post/form/request",method:"post",data:Object(a["a"])(Object(a["a"])({url:e},t),{},{data:Object(a["a"])({},n)}),headers:{"Content-Type":"application/x-www-form-urlencoded"}})}},{key:"postJson",value:function(e,t,n){return this.request({url:"/iaas/ns/private/post/json/request",method:"post",data:Object(a["a"])(Object(a["a"])({url:e},t),{},{data:Object(a["a"])({},n)})})}},{key:"postArr",value:function(e,t,n){return this.request({url:"/iaas/ns/private/post/json/request",method:"post",data:Object(a["a"])(Object(a["a"])({url:e},t),{},{data:n})})}},{key:"put",value:function(e,t,n){return this.request({url:"/iaas/ns/private/put/form/request",method:"put",data:Object(a["a"])(Object(a["a"])({url:e},t),{},{data:Object(a["a"])({},n)}),headers:{"Content-Type":"application/x-www-form-urlencoded"}})}},{key:"putJson",value:function(e,t,n){return this.request({url:"/iaas/ns/private/put/json/request",method:"put",data:Object(a["a"])(Object(a["a"])({url:e},t),{},{data:Object(a["a"])({},n)})})}}])}()},"81e6":function(e,t,n){},"83d6":function(e,t){e.exports={title:"运维平台",fixedHeader:!1,sidebarLogo:!1}},8736:function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-image",use:"icon-image-usage",viewBox:"0 0 1152 1024",content:''});s.a.add(o);t["default"]=o},"877d":function(e,t,n){"use strict";n("58d2")},"8aa6":function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-zip",use:"icon-zip-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(o);t["default"]=o},"8b32":function(e,t,n){"use strict";var a=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{attrs:{"append-to-body":"",title:"部署授权",visible:e.dialogVisible,width:"720px","close-on-click-modal":!1,"before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("div",{staticClass:"deploy-authorize-dialog"},[t("div",{staticClass:"deploy-authorize-header"},[t("span",[e._v(" 本地特征码 "),t("el-tooltip",{attrs:{effect:"dark",placement:"top"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("p",[e._v("登录www.qpaas.com,进入 “云管平台 - 环境 - 部署授权”模块,点击“申请部署授权”,将本地特征码贴入")])]),t("i",{staticClass:"el-icon-warning",staticStyle:{cursor:"pointer","margin-left":"4px"}})])],1),t("el-button",{staticClass:"copy-btn",attrs:{type:"text","data-clipboard-text":e.authKeyContent},on:{click:e.handleCopy}},[e._v("一键复制")])],1),t("el-input",{attrs:{type:"textarea",rows:10,readonly:"",size:"small"},model:{value:e.authKey,callback:function(t){e.authKey=t},expression:"authKey"}}),e.dialogVisible?t("div",{staticClass:"deploy-authorize-header deploy-authorize"},[t("span",[e._v(" 授权密钥 "),t("el-tooltip",{attrs:{effect:"dark",placement:"top"}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("p",[e._v("登录www.qpaas.com,进入 “云管平台 - 环境 - 部署授权”模块,点击“复制授权码”或“下载授权文件”,将授权码贴入下方")])]),t("i",{staticClass:"el-icon-warning",staticStyle:{cursor:"pointer","margin-left":"4px"}})])],1),t("el-upload",{attrs:{action:"",limit:1,"auto-upload":!1,"show-file-list":!1,"on-exceed":e.handleOnExceed,"on-change":e.handleOnChange}},[t("el-button",{attrs:{type:"text"}},[e._v("导入授权文件")])],1)],1):e._e(),t("el-input",{attrs:{type:"textarea",rows:10,size:"small",placeholder:"请输入授权密钥"},model:{value:e.authorizeContent,callback:function(t){e.authorizeContent=t},expression:"authorizeContent"}})],1),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{size:"small"},on:{click:e.handleClose}},[e._v("取 消")]),t("el-button",{attrs:{type:"primary",size:"small",loading:e.loading},on:{click:e.handleAuthorize}},[e._v("授 权")])],1)]),t("el-dialog",{attrs:{title:"授权成功","append-to-body":"",visible:e.dialogAuthVisible,width:"520px","before-close":function(){e.dialogAuthVisible=!1},"custom-class":"auth-dialog","close-on-click-modal":!1,"show-close":!1},on:{"update:visible":function(t){e.dialogAuthVisible=t}}},[t("el-row",[t("el-col",{attrs:{span:7}},[e._v("授权时间:")]),t("el-col",{attrs:{span:17}},[e._v(e._s(e.parseTime(e.authInfo.CreatedAt)))])],1),t("el-row",[t("el-col",{attrs:{span:7}},[e._v("到期时间:")]),t("el-col",{attrs:{span:17}},[e._v(e._s(e.authInfo.ValidityDate))])],1),t("el-row",[t("el-col",{attrs:{span:7}},[e._v("项目名称:")]),t("el-col",{attrs:{span:17}},[e._v(e._s(e.authInfo.project_name))])],1),t("el-row",[t("el-col",{attrs:{span:7}},[e._v("企业名称:")]),t("el-col",{attrs:{span:17}},[e._v(e._s(e.authInfo.enterprise_name))])],1),t("el-row",[t("el-col",{attrs:{span:7}},[e._v("管理员账号:")]),t("el-col",{attrs:{span:17}},[e._v(e._s(e.authInfo.user_name))])],1),t("el-row",[t("el-col",{attrs:{span:7}},[e._v("管理员密码:")]),t("el-col",{attrs:{span:17}},[e._v(" "+e._s(e.authInfo.password)+" ")])],1),t("el-row",[t("el-col",{staticClass:"color-EB4C3E"},[e._v(" 管理员账号、密码丢失将不可找回,请务必复制并妥善保管 ")])],1),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{staticClass:"auth-copy copy-text",attrs:{size:"mini",type:"primary","data-clipboard-text":"项目名称:"+e.authInfo.project_name+"\r企业名称:"+e.authInfo.enterprise_name+"\r访问地址:"+e.url+"\r管理员账号:"+e.authInfo.user_name+"\r管理员密码:"+e.authInfo.password},on:{click:e.handleCopyAndLogin}},[e._v("复制并前往登录")])],1)],1)],1)},r=[],i=(n("0894"),n("ef1f"),n("2aa5"),n("32f5"),n("c1fb")),s=n("bfc1"),o=n.n(s),c=n("ed08"),u=n("5f87"),l={props:{isRefresh:{type:Boolean,default:!0}},data:function(){return{dialogVisible:!1,authorizeContent:"",loading:!1,dialogAuthVisible:!1,authInfo:{},url:window.location.origin}},computed:{authKey:function(){return this.$store.getters.authKey},authKeyContent:function(){var e;return(null===(e=this.authKey)||void 0===e?void 0:e.replace(/\n/g,"\\n"))||""}},methods:{open:function(){var e=this;this.loading=!1,this.dialogVisible=!0,this.authorizeContent="",Object(i["q"])().then((function(t){e.$store.commit("userState/setAuthKey",null===t||void 0===t?void 0:t.info)}))},handleCopy:function(){var e=this,t=new o.a(".copy-btn");t.on("success",(function(){e.$message.success("复制成功"),t.destroy()}))},parseTime:function(e,t){return Object(c["a"])(new Date(e),t)},handleClose:function(){this.dialogVisible=!1},handleOnExceed:function(e){var t=this,n=new FileReader;n.onload=function(e){t.authorizeContent=e.target.result},n.readAsText(e[0])},handleOnChange:function(e){var t=this,n=new FileReader;n.onload=function(e){t.authorizeContent=e.target.result},n.readAsText(e.raw)},handleAuthorize:function(){var e=this;this.authorizeContent?(this.loading=!0,Object(i["b"])({authorize:this.authorizeContent,authorizeType:"words"}).then((function(t){e.authInfo=(null===t||void 0===t?void 0:t.info)||{},e.dialogVisible=!1,e.$emit("authSuccess"),e.isRefresh&&window.location.reload()})).finally((function(){e.loading=!1}))):this.$message.error("请输入授权密钥")},handleInitUser:function(){var e=this;Object(i["N"])().then((function(t){Object(u["b"])(),e.$store.commit("userState/setIsAuth",!0),e.$store.commit("userState/setIsAuthed",!1),e.$store.commit("userState/setAuthKey",""),e.$store.commit("userState/setUserName",""),e.$router.push("/static/login")})).catch((function(e){window.location.reload()}))},handleCopyAndLogin:function(){var e=this,t=new this.clipboard(".copy-text");t.on("success",(function(n){e.$message.success("复制成功"),t.destroy()})),this.$message.error("复制失败"),this.handleDown(),setTimeout((function(){Object(u["b"])(),e.$store.commit("userState/setIsAuth",!0),e.$store.commit("userState/setIsAuthed",!1),e.$store.commit("userState/setAuthKey",""),e.$router.push("/static/login")}),1e3)},handleDown:function(){var e="项目名称:"+this.authInfo.project_name+"\r企业名称:"+this.authInfo.enterprise_name+"\r访问地址:"+this.url+"\r管理员账号:"+this.authInfo.user_name+"\r管理员密码:"+this.authInfo.password;this.downloadFile(e,"auth-code.txt")},downloadFile:function(e,t){var n=new Blob([e],{type:"utf-8"}),a=new FileReader;a.readAsDataURL(n),a.onload=function(e){var n=document.createElement("a");n.href=e.target.result,n.setAttribute("download",t),document.body.appendChild(n),n.click(),document.body.removeChild(n)}}}},d=l,f=(n("4758"),n("2be6")),p=Object(f["a"])(d,a,r,!1,null,null,null);t["a"]=p.exports},"8c9d":function(e,t,n){"use strict";n("216d")},"8cfd":function(e,t,n){"use strict";n("10c7")},"90be":function(e,t,n){"use strict";n("a59a")},9140:function(e,t,n){"use strict";n("ee36")},"919b":function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-uploadScript",use:"icon-uploadScript-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(o);t["default"]=o},"93cd":function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-tree",use:"icon-tree-usage",viewBox:"0 0 128 128",content:''});s.a.add(o);t["default"]=o},"93f1":function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-productImport",use:"icon-productImport-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(o);t["default"]=o},"99ef":function(e,t,n){},"9ab6":function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-pie",use:"icon-pie-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(o);t["default"]=o},"9b63":function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-data-alarm",use:"icon-data-alarm-usage",viewBox:"0 0 1076 1024",content:''});s.a.add(o);t["default"]=o},"9d82":function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-upload",use:"icon-upload-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(o);t["default"]=o},a026:function(e,t,n){},a18c:function(e,t,n){"use strict";n("841a"),n("6efb"),n("1ad2"),n("ef1f"),n("2aa5"),n("dee9"),n("f3b8"),n("32f5"),n("918c");var a=n("2b0e"),r=n("4360"),i=n("5f2b"),s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"app-wrapper",class:e.classObj},[t("el-header",{staticClass:"header-container"},[t("navbar")],1),e.isAuth?t("sidebar",{staticClass:"sidebar-container"}):e._e(),t("div",{class:e.isAuth?"main-container":"main-container-0"},[t("app-main"),t("websocket",{ref:"websocket",attrs:{drawer:e.wsVisible,platform:"qfinger","websocket-url":e.websocketUrl},on:{closeDrawer:e.closeDrawer,handleWsList:e.handleWsList}}),e.wsList.length&&!e.wsVisible?t("svg-icon",{staticClass:"news",attrs:{name:"news"}}):e._e(),t("div",{staticClass:"display-btn",on:{click:e.handleDrawer}},[e.wsVisible?e._e():t("svg-icon",{attrs:{name:"arrow-left"}})],1)],1)],1)},o=[],c=n("0b38"),u=function(){var e=this,t=e._self._c;return t("div",{staticClass:"navbar"},[t("span",{staticClass:"left-menu"},[e._v(" 运维平台 "),e.version?t("span",{staticClass:"version"},[e._v(e._s(e.version))]):e._e()]),t("div",{staticClass:"right-menu"},[e.isAuthed?[t("span",{staticClass:"expiration-time"},[e._v("项目名称:"+e._s(e.authInfo.project_name))]),t("span",{staticClass:"expiration-time"},[e._v("项目到期:"+e._s(e.date))]),t("svg-icon",{staticClass:"el-icon-message-solid",attrs:{name:"message"}})]:e._e(),t("el-dropdown",{staticClass:"avatar-container",attrs:{trigger:"click"}},[t("div",{staticClass:"avatar-wrapper"},[t("div",{staticClass:"user-avatar"},[t("el-avatar",{attrs:{size:"large",src:e.circleUrl}}),"due"===e.mode?[t("i",{staticClass:"el-icon-warning"}),t("span",{staticClass:"el-icon-warning-bg"})]:e._e()],2),t("i",{staticClass:"el-icon-caret-bottom"})]),t("el-dropdown-menu",{staticClass:"user-dropdown",attrs:{slot:"dropdown"},slot:"dropdown"},[e.isAuthed?[t("el-dropdown-item",[t("span",{staticClass:"ellipsis-item"},[t("i",{staticClass:"el-icon-user"}),t("span",{staticClass:"user_name",attrs:{title:e.userInfo.real_name}},[e._v(e._s(e.userInfo.real_name))])])]),t("el-dropdown-item",[t("span",{staticClass:"ellipsis-item"},[t("img",{staticClass:"icon-png",attrs:{src:n("c517")}}),t("span",{staticClass:"user_name",attrs:{title:e.userInfo.real_name}},[e._v(e._s(e.userInfo.role_name))])])])]:e._e(),e.isAuthed?t("el-dropdown-item",{nativeOn:{click:function(t){return e.handleUserInfo("authInfo")}}},[t("span",{staticClass:"ellipsis-item"},[t("i",{staticClass:"el-icon-tickets"}),e._v("授权信息")])]):e._e(),t("el-dropdown-item",{directives:[{name:"hidden",rawName:"v-hidden",value:"PUT_auth_auth",expression:"'PUT_auth_auth'"}],nativeOn:{click:function(t){return e.handleDeployAuthorize.apply(null,arguments)}}},[t("span",{staticClass:"ellipsis-item"},[t("i",{staticClass:"el-icon-finished"}),e._v("部署授权")])]),e.isAuthed?[e.isAuth?[t("el-dropdown-item",{staticStyle:{position:"relative"},nativeOn:{click:function(t){return e.handleUpdateKey.apply(null,arguments)}}},[t("span",{staticClass:"ellipsis-item"},[t("i",{staticClass:"el-icon-key"}),t("span",[e._v(" 登录密钥 "),"due"===e.mode?t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"密钥即将过期,为了不影响您的后续使用,请尽快更新密钥",placement:"top"}},[t("i",{staticClass:"el-icon-warning"})]):e._e()],1)])]),t("el-dropdown-item",{nativeOn:{click:function(t){return e.handleUserLock("lock")}}},[t("span",{staticClass:"ellipsis-item"},[t("i",{class:"true"===e.authStatus?"el-icon-unlock":"el-icon-lock"}),e._v(e._s("true"===e.authStatus?"解锁":"锁定"))])])]:e._e(),t("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(t){return e.logout.apply(null,arguments)}}},[t("span",{staticClass:"ellipsis-item"},[t("i",{staticClass:"el-icon-switch-button"}),e._v("退出登录")])])]:e._e()],2)],1),t("user-info",{attrs:{"user-info-visible":e.userInfoVisible,"user-info-type":e.userInfoType},on:{closeDrawer:e.closeDrawer,authSuccess:e.getAuthInfo}}),t("DeployAuthorize",{ref:"deployAuthorize"}),t("UpdateKey",{ref:"updateKey",on:{updateUserInfo:e.handleUpdateUserInfo}})],2)])},l=[],d=n("a74e"),f=n("42c2"),p=(n("0894"),n("fa03"),n("fa8c"),n("2f62")),h=n("5f87");function m(e){var t=[{value:9,label:"超级管理员"},{value:5,label:"管理员"},{value:0,label:"普通账号"}];if(void 0===e||0!==e&&5!==e&&9!==e)return t;for(var n in t)if(e===t[n].value)return t[n].label}var g,v,b,y=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{"append-to-body":"",title:e.userInfoDialogTitle,visible:e.userInfoDialog,"before-close":e.drawerClose,"close-on-click-modal":!1,width:"600px",center:""},on:{"update:visible":function(t){e.userInfoDialog=t}}},[t("el-form",{ref:"form",attrs:{size:"small",model:e.userInfoForm,rules:e.userInfoFormRules,"label-width":"120px"}},["authInfo"===e.userInfoType?t("el-row",{staticClass:"auth-form"},[t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"环境名称","label-width":"auto"}},[t("el-input",{attrs:{value:e.authInfo.project_name,disabled:""}})],1),t("el-row",{attrs:{gutter:15}},[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"平台版本","label-width":"auto"}},[t("el-input",{attrs:{value:e.authInfo.paas_version,disabled:""}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"用户数量","label-width":"auto"}},[t("el-input",{attrs:{value:e.authInfo.scale,disabled:""}})],1)],1)],1),t("el-row",{attrs:{gutter:15}},[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"授权时间","label-width":"auto"}},[t("el-input",{attrs:{value:e.CreatedAt,disabled:""}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"到期时间","label-width":"auto"}},[t("el-input",{attrs:{value:e.ValidityDate,disabled:""}})],1)],1)],1),t("el-form-item",{attrs:{label:"本地特征码","label-width":"auto"}},[t("el-input",{attrs:{type:"textarea",rows:5,value:e.authInfo.apply_token,disabled:""}})],1),t("el-form-item",{attrs:{label:"部署授权码","label-width":"auto"}},[t("el-input",{attrs:{type:"textarea",rows:5,value:e.authInfo.paas_token,disabled:""}})],1)],1)],1):e._e(),"authRenewal"===e.userInfoType?t("div",[t("el-row",[t("el-col",{attrs:{span:22}},[t("el-form-item",{attrs:{label:"授权密钥:",prop:"authKey"}},[t("el-input",{ref:"keyInput",attrs:{placeholder:"请输入授权密钥"},model:{value:e.userInfoForm.authKey,callback:function(t){e.$set(e.userInfoForm,"authKey",t)},expression:"userInfoForm.authKey"}},[t("template",{slot:"append"},[t("el-button",{attrs:{disabled:!e.userInfoForm.authKey},on:{click:e.handleCopy}},[e._v("一键复制")])],1)],2)],1)],1)],1),t("el-row",[t("el-col",{attrs:{span:22}},[t("el-form-item",{attrs:{label:"授权码:",prop:"authorize"}},[t("el-input",{attrs:{type:"textarea",size:"small",placeholder:"请输入授权码"},model:{value:e.userInfoForm.authorize,callback:function(t){e.$set(e.userInfoForm,"authorize",t)},expression:"userInfoForm.authorize"}})],1)],1)],1)],1):e._e(),"updatePassword"===e.userInfoType?t("div",[t("el-row",[t("el-col",{attrs:{span:22}},[t("el-form-item",{attrs:{label:"新密码:",prop:"newPassword"}},[t("el-input",{attrs:{type:"password",size:"small","show-password":"",maxlength:"50",autocomplete:"off",placeholder:"请输入新密码"},model:{value:e.userInfoForm.newPassword,callback:function(t){e.$set(e.userInfoForm,"newPassword",t)},expression:"userInfoForm.newPassword"}})],1)],1)],1),t("el-row",[t("el-col",{attrs:{span:22}},[t("el-form-item",{attrs:{label:"确认密码:",prop:"confirmNewPassword"}},[t("el-input",{attrs:{size:"small",type:"password","show-password":"",maxlength:"50",autocomplete:"off",placeholder:"请输入确认密码"},model:{value:e.userInfoForm.confirmNewPassword,callback:function(t){e.$set(e.userInfoForm,"confirmNewPassword",t)},expression:"userInfoForm.confirmNewPassword"}})],1)],1)],1)],1):e._e()],1),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["updatePassword"===e.userInfoType?t("el-button",{staticStyle:{width:"100px"},attrs:{type:"primary",size:"small"},on:{click:e.onSubmit}},[e._v("确 定")]):e._e(),"authRenewal"===e.userInfoType?t("el-button",{staticStyle:{width:"100px"},attrs:{type:"primary",size:"small"},on:{click:e.onAuth}},[e._v("授 权")]):e._e(),"authInfo"===e.userInfoType?t("el-button",{staticStyle:{width:"100px"},attrs:{size:"small"},on:{click:e.onCancel}},[e._v("返 回")]):e._e()],1),"authRenewal"===e.userInfoType?t("span",{staticClass:"auth-reset",on:{click:e.handleResetAuth}},[e._v("重置授权")]):e._e()],1)},k=[],w=function(){var e=this,t=e._self._c;return t("div",{staticClass:"CommonForm"},[t("el-form",{ref:"CommonForm",attrs:{model:e.selfFormData,rules:e.formRules,"label-width":"80px"}},[t("el-row",e._l(e.formJson.list,(function(n,a){return t("el-col",{key:a,attrs:{span:n.wrap?12:22}},[t("el-form-item",{attrs:{label:n.label,prop:"readOnly"===n.status?"":n.prop}},["readOnly"===n.status?["input"===n.type?[t("span",[e._v(e._s(e.selfFormData[n.prop]))])]:e._e(),"textarea"===n.type?[t("span",[e._v(e._s(e.selfFormData[n.prop]))])]:e._e(),"radio"===n.type?[t("span",[e._v(e._s(e.selfFormData[n.prop]))])]:e._e(),"select"===n.type?[t("span",[e._v(e._s(e._f("selectValue")(n.prop)))])]:e._e(),"button"===n.type?[t("el-button",{attrs:{type:"success",size:"small"}},[e._v(" "+e._s(e.selfFormData[n.prop])+" ")])]:e._e(),"treeSelect"===n.type?[t("span",[e._v(e._s(e._f("treeSelectValue")(n.prop)))])]:e._e()]:["input"===n.type?[t("el-input",{attrs:{type:"input",placeholder:n.placeholder,disabled:n.disabled},model:{value:e.selfFormData[n.prop],callback:function(t){e.$set(e.selfFormData,n.prop,t)},expression:"selfFormData[item.prop]"}})]:e._e(),"password"===n.type?[t("el-input",{staticClass:"no-autofill-pwd",attrs:{type:"text",placeholder:n.placeholder,disabled:n.disabled,"auto-complete":"new-password"},model:{value:e.selfFormData[n.prop],callback:function(t){e.$set(e.selfFormData,n.prop,t)},expression:"selfFormData[item.prop]"}})]:e._e(),"textarea"===n.type?[t("el-input",{attrs:{type:"textarea",rows:2,disabled:n.disabled,placeholder:n.placeholder},model:{value:e.selfFormData[n.prop],callback:function(t){e.$set(e.selfFormData,n.prop,t)},expression:"selfFormData[item.prop]"}})]:e._e(),"radio"===n.type?[t("el-radio-group",{model:{value:e.selfFormData[n.prop],callback:function(t){e.$set(e.selfFormData,n.prop,t)},expression:"selfFormData[item.prop]"}},e._l(n.list,(function(a,r){return t("el-radio",{key:r,attrs:{disabled:n.disabled,label:a.value}},[e._v(e._s(a.label))])})),1)]:e._e(),"checkbox"===n.type?[t("el-checkbox-group",{model:{value:e.selfFormData[n.prop],callback:function(t){e.$set(e.selfFormData,n.prop,t)},expression:"selfFormData[item.prop]"}},e._l(n.list,(function(a,r){return t("el-checkbox",{key:r,attrs:{disabled:n.disabled,label:a.value}},[e._v(e._s(a.label))])})),1)]:e._e(),"datePicker"===n.type?[t("el-date-picker",{attrs:{type:"date",placeholder:"选择日期"},on:{change:e.handleGetTime},model:{value:e.selfFormData[n.prop],callback:function(t){e.$set(e.selfFormData,n.prop,t)},expression:"selfFormData[item.prop]"}})]:e._e(),"select"===n.type?[t("el-select",{attrs:{placeholder:"请选择"},model:{value:e.selfFormData[n.prop],callback:function(t){e.$set(e.selfFormData,n.prop,t)},expression:"selfFormData[item.prop]"}},e._l(n.list,(function(e,n){return t("el-option",{key:n,attrs:{label:e.label,value:e.value}})})),1)]:e._e(),"treeSelect"===n.type?[t("el-tree-select",{attrs:{props:n.config.props,options:n.list,value:e.selfFormData[n.prop],clearable:n.config.isClearable,accordion:n.config.isAccordion},on:{"update:value":function(t){return e.$set(e.selfFormData,n.prop,t)},getValue:function(t){return e.getValue(t)}}})]:e._e()]],2)],1)})),1)],1)],1)},_=[],C=(n("868d"),function(){var e=this,t=e._self._c;return t("el-select",{attrs:{value:e.valueTitle,clearable:e.clearable},on:{clear:e.clearHandle}},[t("el-option",{staticClass:"options",attrs:{value:e.valueTitle,label:e.valueTitle}},[t("el-tree",{ref:"selectTree",attrs:{id:"tree-option",accordion:e.accordion,data:e.options,props:e.props,"node-key":e.props.value,"default-expanded-keys":e.defaultExpandedKey},on:{"node-click":e.handleNodeClick}})],1)],1)}),x=[],S=(n("e94e"),{name:"el-tree-select",props:{props:{type:Object,default:function(){return{value:"id",label:"label",children:"children"}}},options:{type:Array,default:function(){return[]}},value:{type:[String,Number],default:null},clearable:{type:Boolean,default:!0},accordion:{type:Boolean,default:!1}},data:function(){return{valueId:null,valueTitle:"",defaultExpandedKey:[]}},methods:{initHandle:function(){var e=this;this.$nextTick((function(){if(e.valueId){if(!e.$refs.selectTree.getNode(e.valueId))return;e.valueTitle=e.$refs.selectTree.getNode(e.valueId).data[e.props.label],e.$refs.selectTree.setCurrentKey(e.valueId),e.defaultExpandedKey=[e.valueId]}e.initScroll()}))},initScroll:function(){this.$nextTick((function(){var e=document.querySelectorAll(".el-scrollbar .el-select-dropdown__wrap")[0],t=document.querySelectorAll(".el-scrollbar .el-scrollbar__bar");e.style.cssText="margin: 0px; max-height: none; overflow: hidden;",t.forEach((function(e){e.style.width=0}))}))},handleNodeClick:function(e){this.valueTitle=e[this.props.label],this.valueId=e[this.props.value],this.$emit("getValue",this.valueId),this.defaultExpandedKey=[]},clearHandle:function(){this.valueTitle="",this.valueId=null,this.defaultExpandedKey=[],this.clearSelected(),this.$emit("getValue",null)},clearSelected:function(){var e=document.querySelectorAll("#tree-option .el-tree-node");e.forEach((function(e){return e.classList.remove("is-current")}))}},watch:{value:{immediate:!0,handler:function(e){this.valueId=e,this.initHandle()}},valueId:function(e){this.$emit("update:value",e)},options:function(){this.initHandle()}}}),L=S,j=(n("2ac5"),n("2be6")),I=Object(j["a"])(L,C,x,!1,null,"b4877868",null),D=I.exports,M={name:"CommonForm",props:{dialogTitle:{type:String,default:""},dialogVisible:{type:Boolean,default:!1},formJson:{type:Object,default:function(){return{}}},formData:{type:Object,default:function(){return{}}},formRules:{type:Object,default:function(){return{}}},hasOperate:{type:Boolean,default:!1},isAddBtn:{type:Boolean,default:!1}},filters:{treeSelectValue:function(e){var t,n=e,a=g,r=a.formJson,i=r.list.find((function(e){return e.prop===n})).list;function s(e){e.forEach((function(e){e.children&&s(e.children),e.name!==g.selfFormData[n]&&e.id!==g.selfFormData[n]||(t=e)}))}return s(i),t.name},selectValue:function(e){var t=e,n=g,a=n.formJson,r=a.list.find((function(e){return e.prop===t})).list;return r.find((function(e){return e.value===g.selfFormData[t]||e.label===g.selfFormData[t]})).label}},components:{elTreeSelect:D},data:function(){return{selfFormData:this.formData,isVisible:this.dialogVisible}},watch:{selfFormData:function(e){this.$emit("update:formData",e)},dialogVisible:function(e){this.isVisible=e}},beforeCreate:function(){g=this},methods:{validate:function(e){this.$refs.CommonForm.validate((function(t){e(t)}))},resetFields:function(){this.$refs.CommonForm.resetFields()},getValue:function(e){this.valueId=e},drawerClose:function(e){e(),this.$emit("closeDrawer")},onSubmit:function(){this.$emit("onSubmit")},onCancel:function(){this.$emit("closeDrawer")},handleDelete:function(e){this.$emit("handleDelete",e)},handlerAdd:function(){this.$emit("handlerAdd")},handleGetTime:function(e){this.$emit("handleGetTime",e)}}},T=M,A=(n("3214"),Object(j["a"])(T,w,_,!1,null,"2dc8c8ae",null)),z=A.exports,O=n("c1fb"),P=n("c1df"),V=n.n(P),B=n("9ec3"),F=n.n(B),H={name:"UserInfo",components:{CommonForm:z},props:{userInfoVisible:{type:Boolean,default:!1},userInfoType:{type:String,default:""},isRefresh:{type:Boolean,default:!1},isUpdateModel:{type:Boolean,default:!1}},computed:Object(c["a"])(Object(c["a"])({},Object(p["b"])(["authKey","authInfo"])),{},{CreatedAt:function(){return this.authInfo.CreatedAt?V()(this.authInfo.CreatedAt).format("YYYY-MM-DD HH:mm:ss"):""},ValidityDate:function(){return this.authInfo.validity>=407088e4?"永久有效":this.authInfo.ValidityDate}}),data:function(){return{userInfoDialog:!1,userInfoDialogTitle:"",type:"",userInfoForm:{newPassword:"",confirmNewPassword:"",authKey:this.$store.getters.authKey,authorize:""},userInfoFormRules:{newPassword:[{required:!0,message:"密码不为空",trigger:"blur"},{pattern:/^(?=.*[a-zA-Z])(?=.*\d)[^\u4E00-\u9FA5]{8,}$/,message:"密码最小长度为8位,至少含字母、数字"}],confirmNewPassword:[{required:!0,message:"密码不为空",trigger:"blur"},{pattern:/^(?=.*[a-zA-Z])(?=.*\d)[^\u4E00-\u9FA5]{8,}$/,message:"密码最小长度为8位,至少含字母、数字"}],authKey:[{required:!0,message:"请输入授权密钥",trigger:"blur"}],authorize:[{required:!0,message:"请输入授权码",trigger:"blur"}]}}},watch:{userInfoVisible:function(e){this.userInfoDialog=e},userInfoType:function(e){this.type=e,"updatePassword"===this.userInfoType?this.userInfoDialogTitle="修改密码":"authInfo"===this.userInfoType?this.userInfoDialogTitle="授权信息":this.userInfoDialogTitle="授权变更"}},methods:{handleCopy:function(){this.$refs.keyInput.focus(),this.$refs.keyInput.select(),document.execCommand("copy")&&(document.execCommand("copy"),this.$message.success("复制成功"))},drawerClose:function(e){e(),this.onCancel()},onSubmit:F.a.debounce((function(e){var t=this;this.$refs["form"].validate((function(e){if(!e)return!1;var n=t.userInfoForm,a=n.newPassword,r=n.confirmNewPassword;if(a!=r)return t.$message.error("两次密码输入不一致!");Object(O["kb"])({passWord:a}).then((function(e){t.$message.success("密码修改成功"),Object(h["c"])(e.info),t.$store.dispatch("userState/state",{keyName:"setToken",value:e.info}),t.onCancel()}))}))}),500),onAuth:function(){var e=this;this.$refs["form"].validate((function(t){if(!t)return!1;var n={authorize:e.userInfoForm.authorize};e.isUpdateModel&&(n.paas_upgrade=1),Object(O["b"])(n).then((function(t){e.$message.success("授权成功"),e.$emit("authSuccess"),e.onCancel(),!e.isRefresh&&window.location.reload()}))}))},handleResetAuth:function(){var e=this;this.$confirm("确认要重置授权?","提示",{type:"warning"}).then((function(){Object(O["d"])().then((function(t){e.$message.success("重置成功")}))})).catch((function(){}))},onCancel:function(){this.$emit("closeDrawer"),this.$refs["form"].resetFields()}}},N=H,R=(n("3cdf"),Object(j["a"])(N,y,k,!1,null,"7292f944",null)),$=R.exports,E=n("8b32"),U=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{title:"登录密钥","append-to-body":"",visible:e.dialogVisible,width:"720px","close-on-click-modal":!1,"custom-class":"update-key-dialog","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("div",{staticClass:"tips"},[t("p",[e._v(e._s(e.userInfo.real_name)+",您在当前环境的安全密钥即将到期("+e._s(e.userInfo.deadline)+")")]),t("p",[e._v("如果仍需使用,请到www.qpaas.com再次申请密钥并且复制到下方。如果不再使用,请点击取消,忽略即可")])]),t("el-input",{attrs:{type:"textarea",rows:10,resize:"none",size:"small",placeholder:"请将密钥复制到此处"},model:{value:e.securityKey,callback:function(t){e.securityKey=t},expression:"securityKey"}}),t("div",{staticClass:"import-key"},[t("el-upload",{attrs:{action:"",limit:1,"auto-upload":!1,"show-file-list":!1,"on-exceed":e.handleOnExceed,"on-change":e.handleOnChange}},[t("el-button",{attrs:{type:"text"}},[e._v("导入授权文件")])],1)],1),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{size:"small"},on:{click:function(t){e.dialogVisible=!1}}},[e._v("取消")]),t("el-button",{attrs:{type:"primary",size:"small",loading:e.loading},on:{click:e.handleSubmit}},[e._v("更新密钥")])],1)],1)},J=[],Z={data:function(){return{dialogVisible:!1,securityKey:"",loading:!1}},computed:Object(c["a"])({},Object(p["b"])(["userInfo"])),methods:{open:function(){this.dialogVisible=!0,this.securityKey="",this.loading=!1},handleClose:function(e){this.dialogVisible=!1},handleOnExceed:function(e){var t=this,n=new FileReader;n.onload=function(e){t.securityKey=e.target.result},n.readAsText(e[0])},handleOnChange:function(e){var t=this,n=new FileReader;n.onload=function(e){t.securityKey=e.target.result},n.readAsText(e.raw)},handleSubmit:function(){var e=this;this.securityKey?(this.loading=!0,Object(O["T"])({encrypt:this.securityKey}).then((function(t){e.dialogVisible=!1,e.$emit("updateUserInfo",t),e.$message.success("密钥更新成功")})).finally((function(){e.loading=!1}))):this.$message.error("请输入密钥")}}},q=Z,G=(n("b996"),Object(j["a"])(q,U,J,!1,null,null,null)),W=G.exports,K={components:{UserInfo:$,DeployAuthorize:E["a"],UpdateKey:W},computed:Object(c["a"])(Object(c["a"])({},Object(p["b"])(["sidebar","avatar","realName","userInfo","authStatus","isAuth","authInfo","isAuthed"])),{},{version:function(){return"".concat(this.$store.getters.version)},date:function(){var e="25072104",t=e[0]+e[1]+"."+e[2]+e[3]+"."+e[4]+e[5];console.log("%c 前端版本号 %c V".concat(t),"background:#35495e ; padding: 1px; border-radius: 3px 0 0 3px; color: #fff","background:#41b883 ; padding: 1px; border-radius: 0 3px 3px 0; color: #fff");var n=(new Date).getTime();if(this.authInfo.validity>=407088e4)return"永久有效";var a=Math.floor((1e3*this.authInfo.validity-n)/864e5);return a<0?"已过期":"剩余 ".concat(a+1," 天")}}),data:function(){return{userInfoVisible:!1,userInfoType:"",roleExplain:m(this.$store.getters.roleId),circleUrl:"https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png",timer:null,mode:""}},mounted:function(){this.setShowUpdateKey()},destroyed:function(){this.timer&&clearInterval(this.timer)},methods:{setShowUpdateKey:function(){var e=this,t=this.userInfo||{},n=t.deadline,a=Date.parse(n)-Date.parse(new Date);this.timer&&clearInterval(this.timer),this.mode="",n&&a<=36e5?(this.mode="due",this.handleUpdateKey()):this.timer=setInterval((function(){e.setShowUpdateKey()}),3e5)},handleUserInfo:function(e){this.userInfoVisible=!0,this.userInfoType=e},handleDeployAuthorize:function(){this.$refs.deployAuthorize.open()},getAuthStatus:function(){var e=this;Object(O["k"])().then((function(t){e.$store.commit("userState/setAuthStatus",t.info)}))},getAuthInfo:function(){var e=this;Object(O["j"])().then((function(t){e.$store.dispatch("userState/state",{keyName:"setAuthInfo",value:t.info})}))},handleUpdateKey:function(){this.$refs.updateKey.open()},handleUserLock:function(){var e=this,t="true"===this.authStatus?"解锁":"锁定";this.$confirm("确认要".concat(t,"?"),"提示",{type:"warning"}).then((function(){var n="true"===e.authStatus&&O["e"]||O["ib"];n().then((function(n){e.$message.success("".concat(t,"成功")),e.getAuthStatus()}))})).catch((function(){}))},handleUpdateUserInfo:function(e){var t=e||{},n=t.msg,a=t.info;Object(h["c"])(n),this.$store.dispatch("userState/state",{keyName:"setToken",value:n}),Yt.options.routes.forEach((function(e){"/static/userManagement"===e.path&&e.children.forEach((function(e){"/static/userManagement/authList"===e.path&&9!==a.user_role&&(e.hidden=!0)}))})),r["a"].dispatch("userState/state",{keyName:"setUserInfo",value:a}),r["a"].dispatch("userState/state",{keyName:"setUserName",value:a.user_name}),r["a"].dispatch("userState/state",{keyName:"setRealName",value:a.real_name}),r["a"].dispatch("userState/state",{keyName:"setRoleId",value:a.user_role}),r["a"].dispatch("userState/state",{keyName:"setUserId",value:a.user_id}),this.setShowUpdateKey()},closeDrawer:function(){this.userInfoVisible=!1},logout:function(){var e=this;return Object(f["a"])(Object(d["a"])().mark((function t(){return Object(d["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$confirm("确定要退出当前账号吗?","退出账号",{confirmButtonText:"确定",cancelButtonText:"取消",center:!0}).then((function(){Object(h["b"])(),e.$store.dispatch("userState/state",{keyName:"resetState",value:""}),e.$router.push({path:"/static/login"})})).catch((function(){}));case 1:case"end":return t.stop()}}),t)})))()}}},Y=K,Q=(n("8cfd"),n("08fb"),Object(j["a"])(Y,u,l,!1,null,"e3536478",null)),X=Q.exports,ee=function(){var e=this,t=e._self._c;return t("div",{class:{"has-logo":e.showLogo}},[e.showLogo?t("logo",{attrs:{collapse:e.isCollapse}}):e._e(),t("el-scrollbar",{attrs:{"wrap-class":"scrollbar-wrapper"}},[t("el-menu",{attrs:{router:"","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 t("sidebar-item",{key:e.path,attrs:{item:e,"base-path":e.path}})})),1)],1)],1)},te=[],ne=function(){var e=this,t=e._self._c;return t("div",{staticClass:"sidebar-logo-container",class:{collapse:e.collapse}},[t("transition",{attrs:{name:"sidebarLogoFade"}},[e.collapse?t("router-link",{key:"collapse",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[e.logo?t("img",{staticClass:"sidebar-logo",attrs:{src:e.logo}}):t("h1",{staticClass:"sidebar-title"},[e._v(e._s(e.title)+" ")])]):t("router-link",{key:"expand",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[e.logo?t("img",{staticClass:"sidebar-logo",attrs:{src:e.logo}}):e._e(),t("h1",{staticClass:"sidebar-title"},[e._v(e._s(e.title)+" ")])])],1)],1)},ae=[],re={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"}}},ie=re,se=(n("71a0"),Object(j["a"])(ie,ne,ae,!1,null,"5bb1c0e2",null)),oe=se.exports,ce=function(){var e=this,t=e._self._c;return e.item.hidden?e._e():t("div",[!e.hasOneShowingChild(e.item.children,e.item)||e.onlyOneChild.children&&!e.onlyOneChild.noShowingChildren||e.item.alwaysShow?t("el-submenu",{ref:"subMenu",attrs:{index:e.resolvePath(e.item.path),"popper-append-to-body":""}},[t("template",{slot:"title"},[e.item.meta?t("item",{attrs:{icon:e.item.meta&&e.item.meta.icon,title:e.item.meta.title}}):e._e()],1),e._l(e.item.children,(function(n){return t("sidebar-item",{key:n.path,staticClass:"nest-menu",attrs:{"is-nest":!0,item:n,"base-path":e.resolvePath(n.path)}})}))],2):[e.onlyOneChild.meta?t("app-link",{attrs:{to:e.resolvePath(e.onlyOneChild.path)}},[t("el-menu-item",{class:{"submenu-title-noDropdown":!e.isNest},attrs:{index:e.resolvePath(e.onlyOneChild.path)}},[t("item",{attrs:{icon:e.onlyOneChild.meta.icon||e.item.meta&&e.item.meta.icon,title:e.onlyOneChild.meta.title}})],1)],1):e._e()]],2)},ue=[],le=(n("2d6d"),n("fcf8"),n("a0d5")),de=n.n(le),fe=n("61f7"),pe=(n("8d0d"),n("c78b"),{name:"MenuItem",functional:!0,props:{icon:{type:String,default:""},title:{type:String,default:""}},render:function(e,t){var n=t.props,a=n.icon,r=n.title,i=[];return a&&(a.includes("el-icon")?i.push(e("i",{class:[a,"sub-el-icon"]})):i.push(e("svg-icon",{attrs:{name:a}}))),r&&i.push(e("span",{slot:"title"},[r])),i}}),he=pe,me=(n("8c9d"),Object(j["a"])(he,v,b,!1,null,"04ad2167",null)),ge=me.exports,ve=function(){var e=this,t=e._self._c;return t(e.type,e._b({tag:"component"},"component",e.linkProps(e.to),!1),[e._t("default")],2)},be=[],ye={props:{to:{type:String,required:!0}},computed:{isExternal:function(){return Object(fe["a"])(this.to)},type:function(){return this.isExternal?"a":"router-link"}},methods:{linkProps:function(e){return this.isExternal?{href:e,target:"_blank",rel:"noopener"}:{to:e}}}},ke=ye,we=Object(j["a"])(ke,ve,be,!1,null,null,null),_e=we.exports,Ce={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)}}}}},xe={name:"SidebarItem",components:{Item:ge,AppLink:_e},mixins:[Ce],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(c["a"])(Object(c["a"])({},n),{},{path:"",noShowingChildren:!0}),!0)},resolvePath:function(e){return Object(fe["a"])(e)?e:Object(fe["a"])(this.basePath)?this.basePath:de.a.resolve(this.basePath,e)}}},Se=xe,Le=Object(j["a"])(Se,ce,ue,!1,null,null,null),je=Le.exports,Ie=n("cf1e2"),De=n.n(Ie),Me={components:{SidebarItem:je,Logo:oe},computed:Object(c["a"])(Object(c["a"])({},Object(p["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 De.a},isCollapse:function(){return!this.sidebar.opened}}),methods:{}},Te=Me,Ae=Object(j["a"])(Te,ee,te,!1,null,null,null),ze=Ae.exports,Oe=function(){var e=this,t=e._self._c;return t("section",{staticClass:"app-main"},[t("div",{class:["main",{"fixed-header":e.fixedHeader}]},[e.isAuth?t("hamburger",{staticClass:"hamburger-container",attrs:{"is-active":e.sidebar.opened},on:{toggleClick:e.toggleSideBar}}):e._e(),t("breadcrumb",{staticClass:"breadcrumb-container"}),e.isVersion||e.currentStep?t("el-button",{staticClass:"version-update",attrs:{size:"small",type:"success"},on:{click:e.handleUpdateVersion}},[t("svg-icon",{staticClass:"update-icon",attrs:{name:"update"}}),e._v(" "+e._s(e.buttonTittle)+" ")],1):e._e(),t("update-version",{ref:"updateVersion"})],1),t("transition",{attrs:{name:"fade-transform",mode:"out-in"}},[t("router-view",{key:e.key})],1)],1)},Pe=[],Ve=function(){var e=this,t=e._self._c;return t("el-breadcrumb",{staticClass:"app-breadcrumb",attrs:{separator:"/"}},[t("transition-group",{attrs:{name:"breadcrumb"}},e._l(e.levelList,(function(n,a){return t("el-breadcrumb-item",{key:n.path},["noRedirect"===n.redirect||a==e.levelList.length-1?t("span",{staticClass:"no-redirect"},[e._v(e._s(n.meta.title))]):t("a",{on:{click:function(t){return t.preventDefault(),e.handleLink(n)}}},[e._v(e._s(n.meta.title))])])})),1)],1)},Be=[],Fe=(n("d86f"),n("b55a"),n("d830")),He=n.n(Fe),Ne={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:"/static/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=He.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))}}},Re=Ne,$e=(n("4721"),Object(j["a"])(Re,Ve,Be,!1,null,"3b7d8eb0",null)),Ee=$e.exports,Ue=(n("11fd"),function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{title:"版本升级",visible:e.dialogVisible,"before-close":e.drawerClose,"close-on-click-modal":!1,"append-to-body":"",width:"850px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("el-steps",{staticClass:"mt20 mb40",attrs:{active:e.activeStep,"finish-status":e.stepStatus,"align-center":""}},e._l(e.steps,(function(n,a){return t("el-step",{key:n.name,class:{"number-pointe":!n.icon},attrs:{title:n.name,status:n.statusType}},[t("span",{attrs:{slot:"icon"},slot:"icon"},[n.icon?t("i",{staticClass:"step-icon",class:n.icon}):t("div",{staticClass:"step-iocn-number"},[e._v(e._s(a+1))])])])})),1),e.envInfo.updateSuccess?t("div",{staticClass:"update-success-panel"},["exception"===e.envInfo.updateStatus?t("div",[t("svg-icon",{staticClass:"success-icon",attrs:{name:"updateFail"}}),t("div",{staticClass:"update-success-text color-red"},[e._v(" 迁移部署的相关数据获取失败,请手动迁移! ")])],1):t("div",[t("svg-icon",{staticClass:"success-icon",attrs:{name:"updateSuccess"}}),t("div",{staticClass:"update-success-text"},[e._v("升级成功!")])],1)]):t("div",{staticClass:"update-info-list"},e._l(e.versions,(function(n){return t("div",{key:n.id,staticClass:"update-form"},[t("div",{staticClass:"update-title"},[e._v(" "+e._s(11===n.version_release_type?"配置":"程序")+":"+e._s(n.version)+" ")]),t("div",{staticClass:"update-content"},[t("mavon-editor",{staticClass:"update-info",attrs:{"toolbars-flag":!1,subfield:!1,value:n.content,"default-open":"preview"}})],1)])})),0),t("div",{staticClass:"operate-panel"},[1===e.activeStep?t("el-button",{attrs:{type:"primary"},on:{click:e.doNext}},[e._v("导入配置")]):e._e(),2===e.activeStep?t("el-button",{attrs:{type:"primary"},on:{click:e.doNext}},[e._v("重新授权")]):e._e(),3===e.activeStep?t("div",[e.deployList.length?t("div",{staticClass:"color-409EFF"},[e._v(" 服务更新部署中,已完成 "),t("span",{staticClass:"color-EB4C3E"},[e._v(e._s(e.deployListAll.length>e.deployList.length&&(100*(e.deployListAll.length-e.deployList.length)/e.deployListAll.length).toFixed()||0)+"%")]),e._v(" ,请稍后... ")]):t("div",[e.showRestartDeploy?t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.doNext("restart")}}},[e._v("部署升级")]):t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.doNext("skip")}}},[e._v("部署升级")])],1)]):e._e(),5===e.activeStep?t("div",[e.isShowMigrate?t("el-button",{attrs:{type:"primary"},on:{click:e.startMigrate}},[e._v("开始迁移")]):e._e(),"pending"===e.migrateStatus&&5===e.activeStep?t("div",{staticClass:"color-409EFF"},[e._v(" 数据迁移中,请稍后... ")]):e._e()],1):e._e()],1),t("span",{staticClass:"update-footer",attrs:{slot:"footer"},slot:"footer"},[e.isUpdating?[t("el-progress",{class:{"progress-loading":!e.envInfo.updateStatus},attrs:{"stroke-width":10,percentage:e.updatePercent,color:e.progress_color,"text-color":e.progress_color}}),e.envInfo.updateSuccess?e._e():t("div",{staticClass:"update-fail"},[e._v(" "+e._s(e.failMessage)+" ")]),t("div",{staticClass:"log-panel"},[t("div",{staticClass:"log-title-panel",on:{click:function(t){e.showLog=!e.showLog}}},[t("div",{staticClass:"log-label",style:"color:".concat(e.progress_color)},[e._v(" "+e._s(e.envInfo.updateMsg)+" ")]),t("div",{staticClass:"log-btn"},[e._v(e._s(e.showLog?"收起":"查看日志"))])]),t("el-collapse-transition",[t("ul",{directives:[{name:"show",rawName:"v-show",value:e.showLog,expression:"showLog"}],ref:"updateDetail",staticClass:"update-detail"},e._l(e.envInfo.updateMsgHistory,(function(n,a){return t("li",{key:a,staticClass:"update-msg-item"},[e._v(" "+e._s(n)+" ")])})),0)])],1)]:[t("el-button",{staticClass:"update-button",on:{click:e.onCancel}},[e._v("取 消")]),t("el-button",{staticClass:"update-button",attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("开 始")])],[e.envInfo.updateSuccess?t("el-button",{staticClass:"mt20",attrs:{type:"primary"},on:{click:e.onCancel}},[e._v("关闭")]):e._e(),"exception"!==e.envInfo.updateStatus||e.envInfo.updateSuccess?e._e():t("el-button",{staticClass:"mt20",attrs:{type:"danger"},on:{click:function(t){return e.doUpdate(!1)}}},[e._v("重试")]),"exception"!==e.envInfo.updateStatus||e.envInfo.updateSuccess?e._e():t("el-button",{staticClass:"mt20",on:{click:e.handleEndUpdate}},[e._v("跳过")]),e.timerOut?t("el-button",{staticClass:"mt20",on:{click:e.handleSkipDeployTimeOver}},[e._v("跳过")]):e._e()]],2),t("import-config-dialog",{ref:"importDialog",attrs:{"is-update-model":""},on:{success:e.inputSuccess}}),t("user-info",{attrs:{"user-info-visible":e.userInfoVisible,"is-refresh":!0,"user-info-type":"authRenewal","is-update-model":""},on:{closeDrawer:function(t){e.userInfoVisible=!1},authSuccess:e.authSuccess}}),t("DeployAuthorize",{ref:"deployAuthorize",attrs:{"is-refresh":!1},on:{authSuccess:e.authSuccess}}),t("add-deploy-task",{ref:"addDeployTask",attrs:{"is-update-model":""},on:{deploySuccess:e.handleRestartDeploy}})],1)}),Je=[],Ze=n("7c6c"),qe=n("cf28"),Ge=(n("f38f"),n("d331b"),n("f8a5"),n("2ea2"),n("36c6"),n("ac96"),n("9d37"),n("75c7"),n("fe4c"),n("b8e1"),n("eb22"),function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{width:"650px",title:"导入配置",visible:e.dialogVisible,"before-close":e.handleClose,"close-on-click-modal":!1,"append-to-body":"","custom-class":"import-service-dialog"},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.percentage,expression:"!percentage"}],staticClass:"import-row"},[t("div",[e._v("选择文件:")]),t("el-upload",{ref:"upload",attrs:{action:"#","http-request":e.httpRequest,"show-file-list":!1,"on-change":e.handleUploadChange,"auto-upload":!1}},[e.fileName?t("span",[e._v(e._s(e.fileName))]):t("i",{staticClass:"el-icon-plus"})])],1),t("el-progress",{directives:[{name:"show",rawName:"v-show",value:e.percentage,expression:"percentage"}],staticClass:"mb10",attrs:{"text-inside":!0,"stroke-width":16,percentage:e.percentage,status:2===e.uploadStatus?"exception":null}}),2===e.uploadStatus?t("div",{staticClass:"ml5"},[t("span",{staticClass:"color-EB4C3E fll"},[e._v(e._s(e.errorMessage))]),t("span",{staticClass:"color-EB4C3E flr"},[e._v("导入失败!")])]):e._e(),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{type:2!==e.uploadStatus?"primary":"",disabled:!e.fileName,size:"small",loading:e.percentage>0&&e.percentage<100||e.packSaveLoading},on:{click:function(t){return e.submitUpload(e.uploadStatus)}}},[e._v(e._s(e.percentage?100>e.percentage?"上传中":2===e.uploadStatus?"返 回":"识别中":"上 传"))])],1)],1)}),We=[],Ke=(n("0d9f"),{components:{},props:{projectUrl:{type:String,default:""},isUpdateModel:{type:Boolean,default:!1}},data:function(){return{dialogVisible:!1,percentage:0,uploadDialogVisible:!1,uploadPackPath:"",uploadFrontEndPackPath:"",uploadStatus:0,packSaveLoading:!1,updateLoading:!1,addDeployTaskVisible:!1,addServerVisible:!1,isDisabled:!1,updateServerVisible:!1,fileName:"",msgs:[],type:1,uploadType:0,javaInfo:{},frontInfo:{},scriptInfo:{}}},computed:{},methods:{visibleChange:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.dialogVisible=e},handleUploadChange:function(e,t){this.fileName=e.name,t.length>1&&t.shift()},submitUpload:F.a.throttle((function(e){2===e?(this.fileName="",this.percentage=0,this.uploadStatus=0):this.$refs.upload.submit()}),300),httpRequest:function(e){var t=this;this.msgs=[],this.uploadPackPath="",this.msgs.push({data:"文件正在上传"});var n=new FormData;n.append("file",e.file);var a={onUploadProgress:function(e){var n=Math.floor(e.loaded/e.total*100);t.percentage=n,t.percentage>=100&&(t.packSaveLoading=!0)},headers:{"Content-Type":"multipart/form-data"},timeout:432e5};Object(O["mb"])(n,a).then((function(e){t.uploadPackPath=e.info,t.saveUploadPack()})).catch((function(e){t.packSaveLoading=!1}))},saveUploadPack:function(){var e=this;this.packSaveLoading=!0,this.msgs=[];var t={configPath:this.uploadPackPath};this.isUpdateModel&&(t.paas_upgrade=1),Object(O["fb"])(t).then((function(t){e.packSaveLoading=!1,e.$message.success("导入成功"),e.$emit("success"),e.handleClose()})).catch((function(t){e.errorMessage=t.toString().replace("Error: ",""),e.uploadStatus=2,e.packSaveLoading=!1}))},handleClose:function(){this.dialogVisible=!1,this.percentage=0,this.uploadStatus=0,this.fileName="",this.$emit("closeDrawer")}}}),Ye=Ke,Qe=(n("7037"),Object(j["a"])(Ye,Ge,We,!1,null,null,null)),Xe=Qe.exports,et=(n("cfce"),n("153a"),n("57b4"),function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{attrs:{visible:e.addDeployTaskDialog,"before-close":e.drawerClose,"close-on-click-modal":!1,"append-to-body":"",width:"950px",top:"60px"},on:{"update:visible":function(t){e.addDeployTaskDialog=t}}},[t("div",{attrs:{slot:"title"},slot:"title"},[t("brief-describle",{staticClass:"ml30 mr30",attrs:{title:e.title,"tip-list":"2"==e.addDeployTaskForm.taskType?e.serverTipList:e.tipList}}),t("el-col",{staticStyle:{height:"15px",background:"#F5F7FA"},attrs:{span:24}})],1),t("div",{staticClass:"deploy-content"},[t("el-form",{ref:"form",attrs:{model:e.addDeployTaskForm,rules:e.addDeployTaskFormRules,"label-width":"135px"}},[t("el-row",[t("el-col",{attrs:{span:22}},[t("el-form-item",{attrs:{label:"任务类型:",prop:"taskType"}},[t("el-radio-group",{on:{change:e.handleChangeType},model:{value:e.addDeployTaskForm.taskType,callback:function(t){e.$set(e.addDeployTaskForm,"taskType",t)},expression:"addDeployTaskForm.taskType"}},[t("el-radio",{attrs:{label:"1"}},[e._v("服务部署")]),e.isUpdateModel?e._e():t("el-radio",{attrs:{label:"2"}},[e._v("服务迁移")]),e.isUpdateModel?e._e():t("el-radio",{attrs:{label:"3"}},[e._v("监控告警")])],1)],1)],1)],1),"1"===e.addDeployTaskForm.taskType?t("div",[t("el-row",[t("el-col",{attrs:{span:22}},[t("el-form-item",{attrs:{label:"项目信息:"}},[t("span",{staticClass:"color-409EFF cur-pointer",on:{click:e.handleToggle}},[e._v(e._s(e.isToggle?"展开查看":"收起"))])])],1)],1),e.isToggle?e._e():t("div",[t("el-row",[t("el-col",{attrs:{span:10}},[t("el-form-item",{attrs:{label:"企业ID:",prop:"container_id"}},[t("el-input",{attrs:{size:"small",disabled:""},model:{value:e.authInfo.container_id,callback:function(t){e.$set(e.authInfo,"container_id",t)},expression:"authInfo.container_id"}})],1)],1),t("el-col",{attrs:{span:10}},[t("el-form-item",{attrs:{label:"项目名称:",prop:"project_name"}},[t("el-input",{attrs:{size:"small",disabled:""},model:{value:e.authInfo.project_name,callback:function(t){e.$set(e.authInfo,"project_name",t)},expression:"authInfo.project_name"}})],1)],1)],1),t("el-row",[t("el-col",{attrs:{span:22}},[t("el-form-item",{attrs:{label:"访问方式:",prop:"accessType"}},[t("el-radio-group",{on:{change:e.handleChangeRadio},model:{value:e.addDeployTaskForm.accessType,callback:function(t){e.$set(e.addDeployTaskForm,"accessType",t)},expression:"addDeployTaskForm.accessType"}},e._l(e.accessWaylist,(function(n,a){return t("el-radio",{key:a,attrs:{label:n.type}},[e._v(e._s(n.name))])})),1)],1)],1)],1),t("div",{staticClass:"deploy-input"},[t("el-row",[t("el-col",{attrs:{span:12}},["internet_ip"==e.addDeployTaskForm.accessType?t("el-form-item",{attrs:{label:"外网IP:"}},[t("el-input",{attrs:{size:"small",placeholder:"请输入"},on:{blur:e.onBlur},model:{value:e.addDeployTaskForm.internet,callback:function(t){e.$set(e.addDeployTaskForm,"internet",t)},expression:"addDeployTaskForm.internet"}})],1):e._e()],1),t("el-col",{attrs:{span:12}},["domain"==e.addDeployTaskForm.accessType?t("el-form-item",{attrs:{label:"访问端口:"}},[t("el-input",{attrs:{size:"small",placeholder:"请输入"},on:{blur:e.onBlur},model:{value:e.addDeployTaskForm.internet,callback:function(t){e.$set(e.addDeployTaskForm,"internet",t)},expression:"addDeployTaskForm.internet"}})],1):e._e()],1),t("el-col",{attrs:{span:12}},["domain_port"==e.addDeployTaskForm.accessType?t("el-form-item",{attrs:{label:"域名:"}},[t("el-input",{attrs:{size:"small",placeholder:"请输入"},on:{blur:e.onBlur},model:{value:e.addDeployTaskForm.internet,callback:function(t){e.$set(e.addDeployTaskForm,"internet",t)},expression:"addDeployTaskForm.internet"}})],1):e._e()],1)],1),t("el-row",[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"domain"===e.addDeployTaskForm.accessType?"www域名:":"www端口:"}},[t("el-input",{attrs:{size:"small"},on:{blur:e.onBlur},model:{value:e.addDeployTaskForm.www,callback:function(t){e.$set(e.addDeployTaskForm,"www",t)},expression:"addDeployTaskForm.www"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"domain"===e.addDeployTaskForm.accessType?"无忧static域名:":"无忧static端口:"}},[t("el-input",{attrs:{size:"small"},on:{blur:e.onBlur},model:{value:e.addDeployTaskForm.safety_static,callback:function(t){e.$set(e.addDeployTaskForm,"safety_static",t)},expression:"addDeployTaskForm.safety_static"}})],1)],1)],1)],1)],1),t("el-row",{staticClass:"server-select-form ml50"},e._l(e.clientList,(function(n,a){return t("el-col",{key:a,attrs:{span:22}},[t("el-form-item",{attrs:{prop:"taskType"}},[t("span",{staticClass:"server-client",attrs:{slot:"label"},slot:"label"},[t("span",{staticClass:"flex"},[e._v(e._s(n.alias)+":"+e._s(n.client_ip))]),t("span",{staticClass:"flex",staticStyle:{"text-align":"center"}},[e._v(" 服务数: "),t("span",{staticClass:"color-409EFF"},[e._v(e._s(n.selected&&n.selected.length))])]),t("span",{staticClass:"flex",staticStyle:{"text-align":"right"}},[e._v("剩余 "+e._s(n.cpu_cores)+"C / "+e._s((n.memory-n.use_memory).toFixed(1))+"G / "+e._s((n.data_size-n.use_data_size).toFixed(1))+"G")])]),t("el-popover",{ref:"popover",refInFor:!0,attrs:{placement:"top",trigger:"click","popper-class":"popper","visible-arrow":!1},on:{show:function(t){return e.handleShow(a)}}},[t("div",{staticClass:"server-deploy"},[t("span",[e._v(e._s(n.alias)+":"+e._s(n.client_ip))]),t("i",{staticClass:"el-icon-close flr cur-pointer",on:{click:function(t){return e.handleClose(a)}}})]),t("div",{staticClass:"search-module clearfix"},[t("el-input",{staticClass:"mb10",attrs:{size:"small",placeholder:"请输入服务名称搜索"},on:{input:function(t){return e.handleChangeKeyword(t,n)}},model:{value:e.keyword,callback:function(t){e.keyword=t},expression:"keyword"}})],1),t("div",{staticClass:"server-content",style:[{"--height":e.height+"px"}]},e._l(n.serverGroupList,(function(r,i){return t("div",{key:i},[t("div",{staticClass:"type-name"},[e._v(e._s(r.type_name))]),e._l(r.groupList,(function(i,s){return t("div",[t("el-checkbox",{staticClass:"group-name",attrs:{disabled:i.some((function(t){return e.calcDisabledServer(n.client_ip).includes(t.ID)}))||i.some((function(t){return e.serverList.map((function(e){return e.ID})).includes(t.ID)}))},on:{change:function(t){return e.handleCheckAllChange(t,s,n,a)}},model:{value:r.groupList[s].checkAll,callback:function(t){e.$set(r.groupList[s],"checkAll",t)},expression:"groupItem.groupList[key].checkAll"}},[e._v(" "+e._s(s)+" "),t("span",{class:["server-select",{"color-EB4C3E":i.length!==r.groupList[s].isCheckedTotal}]},[e._v(e._s(i.length)+" / "+e._s(r.groupList[s].isCheckedTotal))])]),t("el-checkbox-group",{on:{change:function(t){return e.handleCheckbox(t,s,n,a)}},model:{value:n.selected,callback:function(t){e.$set(n,"selected",t)},expression:"item.selected"}},e._l(i.filter((function(t){return t.server_name.toLowerCase().includes(e.keyword.toLowerCase())})),(function(a){return t("el-checkbox",{key:a.ID,staticClass:"server-name",attrs:{disabled:e.calcDisabledServer(n.client_ip).includes(a.ID)||e.serverList.map((function(e){return e.ID})).includes(a.ID),label:a.ID}},[e._v(e._s(a.server_name))])})),1)],1)}))],2)})),0),t("div",{attrs:{slot:"reference"},slot:"reference"},[t("el-input",{staticClass:"select-input",attrs:{size:"small",placeholder:"请选择需要部署的服务","suffix-icon":"el-icon-arrow-down"},model:{value:n.selectedNames,callback:function(t){e.$set(n,"selectedNames",t)},expression:"item.selectedNames"}})],1),t("div",{staticClass:"footer"},[t("el-button",{on:{click:function(t){return e.handleClose(a)}}},[e._v("取 消")]),t("el-button",{attrs:{type:"primary"},on:{click:e.handleSubmit}},[e._v("确 定")])],1)])],1)],1)})),1)],1):e._e(),"2"===e.addDeployTaskForm.taskType?t("div",[t("el-row",{staticClass:"server-select-form ml50"},[t("el-col",{attrs:{span:22}},[t("el-form-item",{attrs:{prop:"accessType"}},[t("span",{attrs:{slot:"label"},slot:"label"},[e._v("迁移节点及服务:")]),t("el-select",{staticClass:"mr20 mb10",attrs:{size:"small",placeholder:"请选择要迁移的节点"},on:{change:e.handleSelectNode},model:{value:e.addDeployTaskForm.originNode,callback:function(t){e.$set(e.addDeployTaskForm,"originNode",t)},expression:"addDeployTaskForm.originNode"}},e._l(e.clientList,(function(e){return t("el-option",{key:e.ID,attrs:{label:"".concat(e.client_ip," ").concat(e.alias),value:e.client_ip}})})),1),t("el-select",{attrs:{size:"small",multiple:"",filterable:"",placeholder:"请选择要迁移的服务"},on:{change:e.handleSelectMigrationServer},model:{value:e.addDeployTaskForm.migrationServerLists,callback:function(t){e.$set(e.addDeployTaskForm,"migrationServerLists",t)},expression:"addDeployTaskForm.migrationServerLists"}},e._l(e.migrateList,(function(e){return t("el-option",{key:e.ID,attrs:{label:e.server_name,value:e.ID}})})),1)],1)],1)],1),t("el-row",{staticClass:"server-select-form ml50"},[t("el-col",{attrs:{span:22}},[t("el-form-item",{attrs:{prop:"taskType"}},[t("span",{attrs:{slot:"label"},slot:"label"},[e._v("迁移至节点:")]),t("el-select",{staticClass:"mr20",attrs:{size:"small",placeholder:"请选择节点"},model:{value:e.addDeployTaskForm.migrationNode,callback:function(t){e.$set(e.addDeployTaskForm,"migrationNode",t)},expression:"addDeployTaskForm.migrationNode"}},e._l(e.clientList,(function(n){return t("el-option",{key:n.ID,attrs:{label:"".concat(n.client_ip," ").concat(n.alias),value:n.client_ip,disabled:e.addDeployTaskForm.originNode.includes(n.client_ip)}})})),1)],1)],1)],1)],1):e._e(),"3"===e.addDeployTaskForm.taskType?t("div",[t("el-row",[t("el-col",{staticClass:"server-select-form ml50",attrs:{span:9}},[t("el-form-item",[t("div",{staticClass:"deploy-name"},[e._v("监控服务端")])])],1),t("el-col",{attrs:{span:9}},[t("el-form-item",{staticClass:"alarm-node",attrs:{label:"端口:",prop:"serverPort"}},[t("el-input",{attrs:{size:"mini",placeholder:"端口",maxlength:"10"},model:{value:e.addDeployTaskForm.serverPort,callback:function(t){e.$set(e.addDeployTaskForm,"serverPort",t)},expression:"addDeployTaskForm.serverPort"}})],1)],1)],1),t("el-row",[t("el-col",{staticClass:"server-select-form ml50",attrs:{span:20}},[t("el-form-item",{attrs:{prop:"serverClientIp"}},[t("el-select",{staticClass:"client-node",attrs:{size:"small",placeholder:"请选择节点"},on:{change:e.handleChangeServer},model:{value:e.addDeployTaskForm.serverClientIp,callback:function(t){e.$set(e.addDeployTaskForm,"serverClientIp",t)},expression:"addDeployTaskForm.serverClientIp"}},[t("template",{slot:"prefix"},[t("div",{staticClass:"right"},[e._v(e._s(e.alarmResourceServer))])]),e._l(e.clientList,(function(n){return t("el-option",{key:n.ID,attrs:{label:"".concat(n.client_ip," ").concat(n.alias),value:n.client_ip}},[t("span",{staticClass:"fll"},[t("span",{staticClass:"mr10"},[e._v(e._s(n.client_ip))]),t("span",[e._v(e._s(n.alias))])]),t("span",{staticClass:"alarm-resource"},[e._v("剩余 "+e._s(n.cpu_cores)+"C / "+e._s((n.memory-n.use_memory).toFixed(1))+"G / "+e._s((n.data_size-n.use_data_size).toFixed(1))+"G")])])}))],2)],1)],1)],1),t("el-row",[t("el-col",{staticClass:"server-select-form ml50",attrs:{span:9}},[t("el-form-item",{attrs:{prop:"taskType"}},[t("div",{staticClass:"deploy-name"},[e._v("监控客户端")])])],1),t("el-col",{attrs:{span:9}},[t("el-form-item",{staticClass:"alarm-node",attrs:{label:"端口:",prop:"clientPort"}},[t("el-input",{attrs:{size:"mini",placeholder:"端口",maxlength:"10"},model:{value:e.addDeployTaskForm.clientPort,callback:function(t){e.$set(e.addDeployTaskForm,"clientPort",t)},expression:"addDeployTaskForm.clientPort"}})],1)],1)],1),t("el-row",[t("el-col",{staticClass:"server-select-form ml50",attrs:{span:20}},e._l(e.clientList,(function(n){return t("div",{key:n.ID,staticClass:"alarm-client"},[t("div",{staticClass:"client-item"},[t("span",{staticClass:"fll"},[t("span",{staticClass:"mr10"},[e._v(e._s(n.client_ip))]),t("span",[e._v(e._s(n.alias))])]),t("span",{staticClass:"alarm-resource"},[e._v("剩余 "+e._s(n.cpu_cores)+"C / "+e._s((n.memory-n.use_memory).toFixed(1))+"G / "+e._s((n.data_size-n.use_data_size).toFixed(1))+"G")])]),t("el-switch",{staticClass:"client-switch",attrs:{"active-value":1,"inactive-value":0},on:{change:function(t){return e.handleChangeStatus(n)}},model:{value:n.is_deploy,callback:function(t){e.$set(n,"is_deploy",t)},expression:"client.is_deploy"}})],1)})),0)],1),t("el-row",[t("el-col",{staticClass:"server-select-form ml50",attrs:{span:9}},[t("el-form-item",[t("div",{staticClass:"deploy-name"},[e._v("grafana")])])],1),t("el-col",{attrs:{span:9}},[t("el-form-item",{attrs:{label:"端口:",prop:"extendPort"}},[t("span",{staticClass:"alarm-node"},[t("el-input",{attrs:{size:"mini",placeholder:"端口",maxlength:"10"},model:{value:e.addDeployTaskForm.extendPort,callback:function(t){e.$set(e.addDeployTaskForm,"extendPort",t)},expression:"addDeployTaskForm.extendPort"}})],1)])],1)],1),t("el-row",{staticClass:"mb20"},[t("el-col",{staticClass:"server-select-form ml50",attrs:{span:20}},[t("el-form-item",{attrs:{prop:"extendClientIp"}},[t("el-select",{staticStyle:{width:"90%","margin-bottom":"6px"},attrs:{size:"small",placeholder:"请选择节点"},on:{change:e.handleChangeExtend},model:{value:e.addDeployTaskForm.extendClientIp,callback:function(t){e.$set(e.addDeployTaskForm,"extendClientIp",t)},expression:"addDeployTaskForm.extendClientIp"}},[t("template",{slot:"prefix"},[t("div",{staticClass:"right"},[e._v(e._s(e.alarmResourceExtend))])]),e._l(e.clientList,(function(n){return t("el-option",{key:n.ID,attrs:{label:"".concat(n.client_ip," ").concat(n.alias),value:n.client_ip}},[t("span",{staticClass:"fll"},[t("span",{staticClass:"mr10"},[e._v(e._s(n.client_ip))]),t("span",[e._v(e._s(n.alias))])]),t("span",{staticClass:"alarm-resource"},[e._v("剩余 "+e._s(n.cpu_cores)+"C / "+e._s((n.memory-n.use_memory).toFixed(1))+"G / "+e._s((n.data_size-n.use_data_size).toFixed(1))+"G")])])}))],2),t("el-switch",{staticClass:"client-switch",attrs:{"active-value":1,"inactive-value":0},model:{value:e.addDeployTaskForm.extendisDeploy,callback:function(t){e.$set(e.addDeployTaskForm,"extendisDeploy",t)},expression:"addDeployTaskForm.extendisDeploy"}})],1)],1)],1)],1):e._e()],1)],1),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:e.onCancel}},[e._v("取 消")]),t("el-button",{directives:[{name:"hidden",rawName:"v-hidden",value:"POST_server_deploy_distribute",expression:"'POST_server_deploy_distribute'"}],attrs:{loading:e.isLoading,type:"primary"},on:{click:e.onSubmit}},[e._v("开始任务")])],1)])],1)}),tt=[],nt=(n("8423"),n("ef14"),n("28eb"),n("11ed"),n("9cb8"),n("5f41"),function(){var e=this,t=e._self._c;return t("el-card",{staticClass:"desc-card",attrs:{shadow:"never"}},[t("div",{staticClass:"desc-head"},[t("span",{staticClass:"fll title"},[e._v(e._s(e.title))]),t("span",{staticClass:"flr toggle",on:{click:e.handleToggle}},[e._v(e._s(e.isToggle?"收起":"展开"))])]),e.isToggle?t("div",{staticClass:"desc-tip"},e._l(e.tipList,(function(n,a){return t("div",{key:a},[e._v(e._s(a+1+". "+n))])})),0):e._e()])}),at=[],rt={props:{tipList:{type:Array,default:function(){return[]}},title:{type:String,default:""}},data:function(){return{isToggle:!0}},methods:{handleToggle:function(){this.isToggle=!this.isToggle}}},it=rt,st=(n("90be"),n("1453"),Object(j["a"])(it,nt,at,!1,null,"322771f1",null)),ot=st.exports;a["default"].directive("defaultSelect",{componentUpdated:function(e,t,n){var a=t.value,r=a.values,i=void 0===r?[]:r,s=a.options,o=a.prop,c=a.defaults,u=[],l=i.map((function(e){return s.find((function(t){return t[o]===e}))}));l.forEach((function(e,t){c.includes(e[o])&&u.push(t)}));var d=function(e){e.forEach((function(e,t){u.includes(t)&&!Object(Ze["a"])(e.classList).includes("select-tag-close-none")&&e.classList.add("display-none")}))},f=e.querySelectorAll(".el-tag__close");0===f.length?setTimeout((function(){var t=e.querySelectorAll(".el-tag__close");d(t)})):d(f)}});var ct={components:{CommonForm:z,BriefDescrible:ot},props:{isUpdateModel:{type:Boolean,default:!1}},data:function(){return{value1:[],options:[],title:"添加部署任务",selectServerList:[],searchList:[],addDeployTaskDialog:!1,isToggle:!1,isLoading:!1,keyword:"",height:0,dialogHeight:0,authInfo:this.$store.getters.authInfo,alarmResourceExtend:"",alarmResourceServer:"",accessWaylist:[],addDeployTaskForm:{container_id:"",project_name:"",taskType:"1",accessType:"",typeId:"",internet:"",www:"",safety_static:"",websocket:"",login:"",removeNode:"",originNode:"",migrationNode:"",migrationServerLists:[],host:"",serverPort:"",serverClientIp:"",clientPort:"",extendClientIp:"",extendPort:"",extendisDeploy:""},clientList:[],serverList:[],serverSearchList:[],migrateList:[],serverDeployList:[],serverDeployAlarmInfo:{},tipList:["开始任务前,请注意部署服务器资源是否充足。","所有服务必须全部选择对应部署服务器后,即可开始部署任务。"],serverTipList:["涉及到服务hosts地址的变更,可能会有部分程序有DNS缓存。","如果迁移、改变hosts后访问异常,建议重启相关通讯依赖的服务以及nginx等。"],addDeployTaskFormRules:{serverPort:[{required:!0,message:"端口不为空",trigger:"blur"},{pattern:/^[0-9]*$/,message:"只能为正整数"}],serverClientIp:[{required:!0,message:"节点不为空",trigger:"change"}],clientPort:[{required:!0,message:"端口不为空",trigger:"blur"},{pattern:/^[0-9]*$/,message:"只能为正整数"}]}}},computed:{},watch:{accessWaylist:function(e){var t=this;e&&e.map((function(n,a){1===n.use&&(t.addDeployTaskForm.accessType=e[a].type,t.addDeployTaskForm.typeId=e[a].ID,t.addDeployTaskForm.internet=e[a].internet,t.addDeployTaskForm.www=e[a].www,t.addDeployTaskForm.safety_static=e[a].safety_static)}))}},methods:{open:function(e){this.addDeployTaskDialog=!0,this.getClientList(),this.getProjectRequestList(),this.dialogHeight=window.innerHeight-200},getClientList:function(){var e=this;Object(O["l"])().then((function(t){e.clientList=t.info,e.getAllServerList()})).catch((function(){}))},handleToggle:function(){this.isToggle=!this.isToggle},handleClose:function(e){document.body.click()},handleSubmit:function(){document.body.click()},handleShow:function(e){this.height=window.innerHeight-260},handleCheckAllChange:function(e,t,n,a){var r=this;n.serverGroupList.forEach((function(a){var i=function(i){a.groupList[i].forEach((function(s){i===t&&(n.selected.push(s.ID),e?r.$set(a.groupList[t],"checkAll",e):(n.selected=Array.from(new Set(n.selected)),n.selectedName=Array.from(new Set(n.selectedName)),n.selectedName.map((function(e,t){s.server_name===e&&n.selectedName.splice(t,1)})),n.selected.map((function(e,t){s.ID===e&&n.selected.splice(t,1)})))),n.selected.map((function(e){s.ID===e&&n.selectedName.push(s.server_name)}))}))};for(var s in a.groupList)i(s)})),n.selectedName=Array.from(new Set(n.selectedName)),this.clientList[a].selectedName=n.selectedName,this.$set(this.clientList[a],"selectedNames",this.clientList[a].selectedName.join(","))},handleCheckbox:function(e,t,n,a){n.selectedName=[],n.serverGroupList.forEach((function(a,r){for(var i in a.groupList){if(i===t){var s=a.groupList[i].every((function(e){return n.selected.includes(e.ID)}));a.groupList[i].checkAll=!!s}a.groupList[i].forEach((function(t){e.forEach((function(e){t.ID===e&&n.selectedName.push(t.server_name)}))}))}})),this.clientList[a].selectedName=n.selectedName,this.$set(this.clientList[a],"selectedNames",this.clientList[a].selectedName.join(","))},handleSelectNode:function(e){this.addDeployTaskForm.originNode=e,this.addDeployTaskForm.migrationNode="",this.addDeployTaskForm.migrationServerLists=[],this.getServerMigrateList()},handleSelectMigrationServer:function(e){this.migrationServerLists=e},handleChangeStatus:function(e){},handleChangeKeyword:function(e,t){},getServerMigrateList:function(){var e=this;Object(O["G"])({client_ip:this.addDeployTaskForm.originNode}).then((function(t){e.migrateList=t.info}))},getAllServerList:function(e){var t=this,n=new Promise((function(e,t){Object(O["F"])().then((function(t){e(t.info)})).catch((function(){e([])}))})),a=new Promise((function(e,t){Object(O["E"])().then((function(t){e(t.info)})).catch((function(){e([])}))}));Promise.all([n,a]).then((function(e){t.clientList.forEach((function(n){t.$set(n,"selected",[]),t.$set(n,"selectedName",[]),t.$set(n,"serverGroupList",[]);var a=[].concat(Object(Ze["a"])(e[0]),Object(Ze["a"])(e[1])),r=a.reduce((function(e,t){return 0===t.type_id?e[t.group_name]?e[t.group_name].push(t):e[t["group_name"]]=[t]:e[t.type_name]?e[t.type_name].push(t):e[t["type_name"]]=[t],e}),{}),i=Object.keys(r).map((function(e){return{type_name:e,serverList:r[e]}}));if(i.forEach((function(e){e.groupList={};var n=e.serverList.reduce((function(e,t){return e[t.group_name]?e[t.group_name].push(t):e[t["group_name"]]=[t],e}),{});t.$set(e,"groupList",n)})),a.forEach((function(e){n.client_ip===e.client_ip&&(n.selected.push(e.ID),e.isChecked=!0,n.selectedName.push(e.server_name),n.selectedName=Array.from(new Set(n.selectedName)),t.$set(n,"selectedNames",n.selectedName.join(",")))})),t.$set(n,"serverGroupList",i),t.serverSearchList=a,n.selected.length>0){var s=!1;n.serverGroupList.map((function(e){for(var t in e.groupList)s=e.groupList[t].every((function(e){return n.selected.includes(e.ID)}));var a=function(t){e.groupList[t].isCheckedTotal=0,e.groupList[t].forEach((function(n){e.groupList[t].isCheckedTotal+=!0===n.isChecked&&1,e.groupList[t].checkAll=!!s}))};for(var r in e.groupList)a(r)}))}})),t.serverList=e[0],t.serverDeployList=e[1]})).catch((function(){}))},calcDisabledServer:function(e){var t=this.clientList.filter((function(t){return t.client_ip!==e}));return t.reduce((function(e,t){return[].concat(Object(Ze["a"])(e),Object(Ze["a"])(t.selected||[]))}),[])},getProjectRequestList:function(){var e=this;Object(O["y"])().then((function(t){t&&t.info&&t.info.map((function(e){"internet_ip"===e.type?e.name="外网IP":"domain"===e.type?e.name="域名":"domain_port"===e.type?e.name="单域名":e.name="内网IP"})),e.accessWaylist=t.info}))},handleChangeRadio:function(e){var t=this;this.accessWaylist.map((function(n){n.type===e&&(t.addDeployTaskForm.accessType=n.type,t.addDeployTaskForm.typeId=n.ID,t.addDeployTaskForm.internet=n.internet,t.addDeployTaskForm.www=n.www,t.addDeployTaskForm.safety_static=n.safety_static,Object(O["z"])({typeId:n.ID}).then((function(e){t.getProjectRequestInfo()})))}))},getProjectRequestInfo:function(){var e=this;Object(O["x"])().then((function(t){e.addDeployTaskForm.accessType=t.info.type,e.addDeployTaskForm.typeId=t.info.ID,e.addDeployTaskForm.internet=t.info.internet,e.addDeployTaskForm.www=t.info.www,e.addDeployTaskForm.safety_static=t.info.safety_static}))},onBlur:function(){var e=this.addDeployTaskForm,t=e.typeId,n=e.accessType,a=e.internet,r=e.www,i=e.safety_static,s=(e.paas_static,e.websocket,e.login,{type:n,typeId:t,internet:a,www:r,safetyStatic:i});Object(O["gb"])(s).then((function(e){}))},handleChangeType:function(e){var t=this;this.$refs["form"].clearValidate(),"3"===e&&Object(O["D"])().then((function(e){var n=e.info,a=n.server_data,r=n.client_data,i=n.extend_data;t.addDeployTaskForm.serverClientIp=a.client_ip,t.addDeployTaskForm.serverPort=a.port,t.addDeployTaskForm.extendClientIp=i[0].client_ip,t.addDeployTaskForm.extendPort=i[0].port,t.addDeployTaskForm.extendisDeploy=i[0].is_deploy,t.addDeployTaskForm.clientPort=r.port,t.clientList.forEach((function(e){e.client_ip===i[0].client_ip&&(t.alarmResourceExtend="剩余 ".concat(e.cpu_cores,"C / ").concat((e.memory-e.use_memory).toFixed(1),"G / ").concat((e.data_size-e.use_data_size).toFixed(1),"G")),e.client_ip===a.client_ip&&(t.alarmResourceServer="剩余 ".concat(e.cpu_cores,"C / ").concat((e.memory-e.use_memory).toFixed(1),"G / ").concat((e.data_size-e.use_data_size).toFixed(1),"G")),r.node_ips.forEach((function(t){e.client_ip===t.client_ip&&(e.is_deploy=t.is_deploy)}))}))}))},handleChangeServer:function(e){var t=this;this.clientList.forEach((function(n){n.client_ip===e&&(t.alarmResourceServer="剩余 ".concat(n.cpu_cores,"C / ").concat((n.memory-n.use_memory).toFixed(1),"G / ").concat((n.data_size-n.use_data_size).toFixed(1),"G"))}))},handleChangeExtend:function(e){var t=this;this.clientList.forEach((function(n){n.client_ip===e&&(t.alarmResourceExtend="剩余 ".concat(n.cpu_cores,"C / ").concat((n.memory-n.use_memory).toFixed(1),"G / ").concat((n.data_size-n.use_data_size).toFixed(1),"G"))}))},drawerClose:function(e){e(),this.onCancel()},onCancel:function(){this.$emit("closeDrawer"),this.$refs["form"].resetFields(),this.addDeployTaskForm.taskType="1",this.addDeployTaskForm.originNode="",this.addDeployTaskForm.migrationNode="",this.addDeployTaskForm.migrationServerLists=[],this.addDeployTaskDialog=!1},onSubmit:F.a.debounce((function(e){var t=this;this.$refs["form"].validate((function(e){if(e){var n=t.addDeployTaskForm,a=n.taskType,r=n.originNode,i=n.migrationServerLists,s=n.migrationNode;if("2"===a){if(!r)return t.$message.error("请选择要迁移的节点");if(!i.length)return t.$message.error("请选择要迁移的服务");if(!s)return t.$message.error("请选择迁移到的节点");t.submitServerMigrate()}else if("3"===a)t.submitAlarmNode();else{var o={};t.clientList.map((function(e){var n=e.selected.filter((function(e){return!t.serverList.map((function(e){return e.ID})).includes(e)}));n.length&&t.$set(o,e.ID,Array.from(new Set(n)))}));var c={distributeJson:JSON.stringify(o)};t.isUpdateModel&&(c.paas_upgrade=1),t.$confirm("确认开始部署任务?","提示",{type:"warning"}).then((function(){t.isLoading=!0,Object(O["h"])(c).then((function(e){t.$message.success("任务部署成功"),t.$emit("closeDrawer"),!t.isUpdateModel&&t.$router.push("/static/serverDeployment/deployList"),setTimeout((function(){t.onCancel(),t.$emit("deploySuccess")}),0),t.isLoading=!1})).catch((function(){t.isLoading=!1}))})).catch((function(){}))}}}))}),500),submitServerMigrate:function(){var e=this;this.isLoading=!0;var t=this.addDeployTaskForm.migrationServerLists.join(","),n=this.addDeployTaskForm,a=n.originNode,r=n.migrationNode;Object(O["hb"])({origin_client_ip:a,to_client_ip:r,server_ids:t}).then((function(t){e.$message.success("任务迁移成功"),e.onCancel(),e.isLoading=!1})).catch((function(){e.isLoading=!1}))},submitAlarmNode:function(){var e=this,t=[],n=this.addDeployTaskForm,a=n.serverClientIp,r=n.serverPort,i=n.clientPort,s=n.extendClientIp,o=n.extendPort,c=n.extendisDeploy;this.clientList.forEach((function(e){t.push({client_ip:e.client_ip,is_deploy:e.is_deploy})}));var u=t.some((function(e){return 1===e.is_deploy}));if(!u)return this.$message.error("请选择要监控的客户端");this.isLoading=!0;var l={server_data:{client_ip:a,port:+r},client_data:{port:+i,node_ips:t},extend_data:[{server_name:"grafana",client_ip:s,port:+o,is_deploy:c}]};this.isLoading=!0,Object(O["g"])(l).then((function(t){e.$message.success("监控成功"),e.onCancel(),e.isLoading=!1})).catch((function(){e.isLoading=!1}))}}},ut=ct,lt=(n("ff0f"),n("5ea4"),Object(j["a"])(ut,et,tt,!1,null,"6ae71ce8",null)),dt=lt.exports,ft=n("f5f2"),pt=n("30c6"),ht=n("ce37"),mt={Wait:10,Error:11,Success:12,Loading:13},gt=Object(ht["a"])(Object(ht["a"])(Object(ht["a"])(Object(ht["a"])({},mt.Wait,"wait"),mt.Error,"error"),mt.Success,"finish"),mt.Loading,"finish"),vt=Object(ht["a"])(Object(ht["a"])(Object(ht["a"])(Object(ht["a"])({},mt.Wait,{text:"未执行",icon:!1}),mt.Error,{text:"失败",icon:!1}),mt.Success,{text:"成功",icon:"el-icon-check"}),mt.Loading,{text:"执行中",icon:!1}),bt=function(){function e(t){Object(ft["a"])(this,e),Object.assign(this,t),this.icon=vt[mt.Wait].icon,this.text=vt[mt.Wait].text,this.statusType=gt[this.status]||"wait",t.status&&this.update(t.status)}return Object(pt["a"])(e,[{key:"update",value:function(e){this.icon=vt[e].icon,this.text=vt[e].text,this.statusType=gt[e]||"wait"}}])}(),yt=function(){var e=[{name:"五指山迁移",index:1},{name:"配置更新",index:2},{name:"重新授权",index:3},{name:"部署升级",index:4},{name:"平台数据迁移",index:5}];return e.map((function(e){return new bt(e)}))},kt={Normal:"#20a0ff",Fial:"#ff4949",Success:"#13ce66"},wt={components:{ImportConfigDialog:Xe,UserInfo:$,AddDeployTask:dt,DeployAuthorize:E["a"]},props:{},data:function(){return{time:0,timer:null,timerOut:!1,showRestartDeploy:!1,showStartMigration:!1,dialogVisible:!1,isSkip:!1,isShowMigrate:!1,migrateStatus:"",socket:null,failMessage:"",deployType:"",updatePercent:0,migrateProcessList:[],envInfo:{updateStatus:"",updateSuccess:"",updateMsgHistory:[],updateMsg:""},tempEnvInfo:null,stepStatus:"finish",steps:[],deployList:[],deployListOrignal:[],deployListAll:JSON.parse(localStorage.getItem("deployListAll"))||[],activeStep:0,showLog:!1,userInfoVisible:!1,uuid:"",currentDate:"",currentMin:"",isUpdating:!1}},watch:{activeStep:function(e){this.updatePercent=this.activeStep<=4?20*e:5===this.activeStep?90:100}},computed:Object(c["a"])(Object(c["a"])({},Object(p["b"])(["config"])),{},{progress_color:function(){return"exception"===this.envInfo.updateStatus?kt.Fial:kt.Normal},versions:function(){return this.tempEnvInfo&&this.tempEnvInfo.versions||[]}}),methods:{open:function(e){if(this.dialogVisible=!0,!this.isUpdating){this.steps=yt();var t=F.a.get(e,"data.step",0);t&&this.doUpdate(t,"init"),this.updatePercent=this.activeStep/5*100}},getVersion:function(){return new Promise((function(e){Object(O["A"])().then((function(t){var n=F.a.get(t,"info").replace("v",""),a=n.split("."),r=Object(qe["a"])(a,2),i=r[0],s=r[1],o=22===Number(i)&&Number(s)<9||Number(i)<22;e(o)}))}))},getServerList:function(){var e=this;Object(O["E"])().then((function(t){e.showRestartDeploy=t.info.length}))},doNext:function(e){switch(this.deployType=e,this.activeStep){case 1:this.$refs.importDialog.visibleChange();break;case 2:this.$refs.deployAuthorize.open();break;case 3:this.deploySuccess(e);break;case 4:this.startMigrate();break;default:break}},getAllTaskList:function(){var e=this;Object(O["i"])({page:1,limit:999,execStatus:0}).then((function(t){e.deployListAll=t.info,localStorage.setItem("deployListAll",JSON.stringify(e.deployListAll))}))},getNoTaskList:function(){var e=this;Object(O["i"])({page:1,limit:999,execStatus:0}).then((function(t){e.deployList=t.info,e.updatePercent=70,e.deployListOrignal.length===e.deployList.length?e.time+=6e3:e.time=0,e.time/6e4===10?e.timerOut=!0:e.timerOut=!1,e.deployList.length?e.timer=setTimeout((function(){e.deployListOrignal=e.deployList,e.getNoTaskList()}),6e3):(e.envInfo.updateMsgHistory.push("部署升级成功"),e.activeStep=4,e.updateStep(3,mt.Success),e.updateStep(4,mt.Loading),e.deployListOrignal=[],localStorage.removeItem("deployListAll"),e.handleSkipDeployEnd())}))},handleSkipDeploy:function(){Object(O["bb"])().then((function(e){}))},handleSkipDeployTimeOver:function(){var e=this;Object(O["ab"])().then((function(t){e.envInfo.updateMsgHistory.push("跳过部署升级"),e.isShowMigrate=!0,e.timerOut=!1,e.activeStep=5,e.updatePercent=80,e.updateStep(3,mt.Success),e.updateStep(4,mt.Loading),e.timer&&clearInterval(e.timer)}))},handleSkipDeployEnd:function(){var e=this;Object(O["ab"])().then((function(t){e.migrateProcess()}))},drawerClose:function(e){e(),this.onCancel()},onCancel:function(){this.timer&&clearInterval(this.timer),this.isUpdating||(this.envInfo={},this.tempEnvInfo={},this.steps=[],this.activeStep=0),this.dialogVisible=!1,this.isShowMigrate=!1,6===this.activeStep&&setTimeout((function(){window.location.reload()}),2e3)},updateStep:function(e,t){var n=this.steps[e];n&&n.update(t)},checkFile:function(){return Object(f["a"])(Object(d["a"])().mark((function e(){var t;return Object(d["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(O["K"])();case 2:if(t=e.sent,200===t.code){e.next=5;break}return e.abrupt("return",new Error);case 5:case"end":return e.stop()}}),e)})))()},stopRefresh:function(e){return this.$alert("正在更新,刷新可能导致进度丢失,请勿刷新","提示",{confirmButtonText:"确定",type:"warning"}),e.preventDefault(),e.returnValue="正在更新,请勿刷新","正在更新,请勿刷新"},doUpdate:function(e,t){var n=this;return Object(f["a"])(Object(d["a"])().mark((function a(){var r;return Object(d["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(r=isNaN(e)?null:Number(e),n.isUpdating=!0,n.envInfo.updateMsgHistory=[],n.activeStep=0,n.updateStep(0,mt.Loading),1!==r&&r){a.next=8;break}return a.next=8,n.step1();case 8:n.updateStep(0,mt.Success),n.activeStep=1,n.envInfo.updateMsgHistory.push("等待配置导入"),n.updateStep(1,mt.Loading),r>=3&&n.inputSuccess(),r>=4&&n.authSuccess(),r>=5&&r<6&&(n.deployType?n.deploySuccess(n.deployType):(n.deployListAll&&!n.deployListAll.length&&n.getAllTaskList(),n.getNoTaskList(),n.envInfo.updateMsgHistory.push("服务部署中..."),n.envInfo.updateMsgHistory.push("等待开始数据迁移"))),r>=6&&n.migrateProcess(t);case 16:case"end":return a.stop()}}),a)})))()},step1:function(){var e=this;return Object(f["a"])(Object(d["a"])().mark((function t(){var n;return Object(d["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(O["db"])({paas_upgrade:1});case 2:return n=t.sent,200===n.code&&e.envInfo.updateMsgHistory.push(n.info||"五指山迁移成功"),t.abrupt("return",n);case 5:case"end":return t.stop()}}),t)})))()},inputSuccess:function(){this.updateStep(1,mt.Success),this.envInfo.updateMsgHistory.push("配置导入成功"),this.envInfo.updateMsgHistory.push("等待重新授权"),this.activeStep=2,this.updateStep(2,mt.Loading)},authSuccess:function(){this.updateStep(2,mt.Success),this.envInfo.updateMsgHistory.push("重新授权成功"),this.envInfo.updateMsgHistory.push("等待部署升级"),this.activeStep=3,this.updateStep(3,mt.Loading),this.getServerList()},handleRestartDeploy:function(){this.envInfo.updateMsgHistory.push("服务部署中..."),this.envInfo.updateMsgHistory.push("等待开始数据迁移"),this.activeStep=3,this.getAllTaskList(),this.getNoTaskList()},deploySuccess:function(e){"skip"===e?(this.envInfo.updateMsgHistory.push("服务部署中..."),this.envInfo.updateMsgHistory.push("等待开始数据迁移"),this.handleSkipDeploy(),this.activeStep=3,this.getAllTaskList(),this.getNoTaskList()):"restart"===e&&this.$refs.addDeployTask&&this.$refs.addDeployTask.open({isUpdateModel:!0})},removeOldServe:function(){var e=this;return this.getVersion().then((function(t){return!t||(e.envInfo.updateMsgHistory.push("正在删除旧平台服务"),Object(O["eb"])({paas_upgrade:1}).then((function(t){return e.envInfo.updateMsgHistory.push("旧平台服务删除成功,开始升级"),!0})))}))},startMigrate:function(){var e=this;this.$confirm("是否开始平台数据迁移?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",callback:function(t){"confirm"===t&&(e.isShowMigrate=!1,e.migrateProcess())}})},migrateProcess:function(e){var t=this;this.updatePercent=90,this.migrateStatus="pending",this.updateStep(3,mt.Success),this.updateStep(4,mt.Loading),this.activeStep=5,this.$store.dispatch("app/toggleWs",!0);try{"init"===e?this.initCheckMigrateState("enterprise-migration").then((function(){t.initCheckMigrateState("migration-migration")})):this.dataMigrate("enterprise-migration").then((function(){t.dataMigrate("migration-migration")}))}catch(n){}},initCheckMigrateState:function(e){var t=this;return this.uuid=e,this.envInfo.updateMsgHistory.push("".concat(e," 数据迁移中...")),new Promise((function(n,a){t.checkMigrateState(t.uuid).then((function(a){t.envInfo.updateMsgHistory.push("".concat(e," 数据迁移成功")),n()}),(function(n){t.envInfo.updateStatus="exception",t.envInfo.updateMsgHistory.push("".concat(e," 数据迁移失败")),a()}))}))},dataMigrate:function(e){var t=this;return this.uuid=e,this.envInfo.updateMsgHistory.push("".concat(e," 数据迁移中...")),new Promise((function(n,a){Object(O["I"])({server_name:e,is_run:1,UUId:t.uuid,paas_upgrade:1}).then((function(r){t.checkMigrateState(t.uuid).then((function(a){t.envInfo.updateMsgHistory.push("".concat(e," 数据迁移成功")),n()}),(function(n){t.envInfo.updateStatus="exception",t.envInfo.updateMsgHistory.push("".concat(e," 数据迁移失败")),a()}))}))}))},checkMigrateState:function(e){var t=this;return this.updatePercent=90,new Promise((function(n,a){var r=function(){setTimeout((function(){t.uuid=e,Object(O["J"])({UUId:t.uuid}).then((function(i){t.migrateStatus=F.a.get(i,"info.status"),"success"===t.migrateStatus?(n(),t.migrateProcessList.push(e),t.migrateProcessList=Object(Ze["a"])(new Set(t.migrateProcessList)),t.migrateProcessList.includes("enterprise-migration")&&t.migrateProcessList.includes("migration-migration")&&(t.updatePercent=100,t.handleUpgradeEnd(),t.envInfo.updateStatus="success",t.envInfo.updateSuccess=!0)):"fail"===t.migrateStatus?a():"pending"===t.migrateStatus?(t.updatePercent=90,r()):a()}))}),1e4)};r()}))},handleUpgradeEnd:function(){var e=this;Object(O["cb"])().then((function(t){e.$message.success("升级完成"),e.activeStep=6,e.isShowMigrate=!1,e.updateStep(4,mt.Success)}))},handleEndUpdate:function(){var e=this;Object(O["cb"])().then((function(t){e.activeStep=6,e.updatePercent=100,e.envInfo.updateSuccess=!0,e.envInfo.updateMsgHistory.push("跳过数据迁移")}))},onSubmit:function(){var e=this;this.$confirm("是否开始升级?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",callback:function(t){"confirm"===t&&e.checkFile().then((function(){e.removeOldServe().then((function(){e.doUpdate()}))}))}})}}},_t=wt,Ct=(n("9140"),Object(j["a"])(_t,Ue,Je,!1,null,"e701f150",null)),xt=Ct.exports,St=function(){var e=this,t=e._self._c;return t("div",{staticClass:"app-hamburger",on:{click:e.toggleClick}},[t("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"}},[t("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"}})])])},Lt=[],jt={name:"Hamburger",props:{isActive:{type:Boolean,default:!1}},methods:{toggleClick:function(){this.$emit("toggleClick")}}},It=jt,Dt=(n("bb90"),Object(j["a"])(It,St,Lt,!1,null,"8ea89c2a",null)),Mt=Dt.exports,Tt={name:"AppMain",components:{Breadcrumb:Ee,Hamburger:Mt,UpdateVersion:xt},computed:Object(c["a"])(Object(c["a"])({},Object(p["b"])(["sidebar","isCollapse"])),{},{fixedHeader:function(){return this.$store.state.settings.fixedHeader},title:function(){return this.$route.meta.title},key:function(){return this.$route.path},isAuth:function(){return this.$store.getters.isAuth}}),data:function(){return{isUpdateVersion:!1,isVersion:!1,currentStep:0,buttonTittle:"版本更新"}},mounted:function(){this.checkUpdate(),this.checkNeedUpdate()},methods:{toggleSideBar:function(){this.$store.dispatch("app/toggleSideBar")},checkUpdate:function(){var e=this;Object(O["H"])().then((function(t){e.currentStep=Number(t.info),0!==e.currentStep&&(e.buttonTittle="版本升级中...",e.$refs.updateVersion.open({data:{step:e.currentStep}}))}))},checkNeedUpdate:function(){var e=this;Object(O["L"])().then((function(t){e.isVersion=1==t.info}))},handleUpdateVersion:function(){this.$refs.updateVersion.open()}}},At=Tt,zt=(n("877d"),n("d137"),Object(j["a"])(At,Oe,Pe,!1,null,"c75aeac2",null)),Ot=zt.exports,Pt=n("07c5"),Vt=document,Bt=Vt.body,Ft=992,Ht={watch:{$route:function(e){"mobile"===this.device&&this.sidebar.opened&&r["a"].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&&(r["a"].dispatch("app/toggleDevice","mobile"),r["a"].dispatch("app/closeSideBar",{withoutAnimation:!0}))},methods:{$_isMobile:function(){var e=Bt.getBoundingClientRect();return e.width-1'});s.a.add(o);t["default"]=o},ac48:function(e,t,n){"use strict";n("99ef")},b031:function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-updateSuccess",use:"icon-updateSuccess-usage",viewBox:"0 0 257.834 143.372",content:'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n'});s.a.add(o);t["default"]=o},b1bd:function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var a=n("30c6"),r=n("f5f2"),i=n("ec15"),s=function(){function e(){for(var t in Object(r["a"])(this,e),i)"function"===typeof i[t]&&(this[t]=this.wrapMethod(i[t]))}return Object(a["a"])(e,[{key:"wrapMethod",value:function(e){return function(){var t=arguments[1];return e.call(this,t)}}}])}(),o=n("e404"),c=n("f0ad"),u=n("7fc8"),l=function(e){function t(e){return Object(r["a"])(this,t),Object(o["a"])(this,t,[e])}return Object(c["a"])(t,e),Object(a["a"])(t,[{key:"getUserInfo",value:function(e,t){return this.get("/user/user",e,t)}},{key:"getClientList",value:function(e,t){return this.get("/remote/list",e,t)}},{key:"getClientTagList",value:function(e,t){return this.get("/client/tag/list",e,t)}},{key:"getBackupFileList",value:function(e,t){return this.get("/backup/files",e,t)}},{key:"deleteBackup",value:function(e,t){return this.delete("/backup/log/by",e,t)}},{key:"getBackupTypes",value:function(e,t){return this.get("/backup/types",e,t)}},{key:"getBackupRules",value:function(e,t){return this.get("/backup/rules",e,t)}},{key:"getBackupConfig",value:function(e,t){return this.get("/backup/config",e,t)}},{key:"updateBackupRules",value:function(e,t){return this.postArr("/backup/upd/rules",e,t)}},{key:"getBackupSetting",value:function(e,t){return this.get("/backup/setting",e,t)}},{key:"putBackupSetting",value:function(e,t){return this.putJson("/backup/setting",e,t)}},{key:"getBackupClient",value:function(e,t){return this.get("/backup/client",e,t)}},{key:"getBackupCores",value:function(e,t){return this.get("/backup/cores",e,t)}},{key:"getAlarmLogList",value:function(e,t){return this.get("/alarm/log/list",e,t)}},{key:"getAlarmDict",value:function(e,t){return this.get("/alarm/dict/dict",e,t)}},{key:"postAlarmBusinessRuleAdd",value:function(e,t){return this.postJson("/business/add",e,t)}},{key:"putAlarmBusinessRuleEdit",value:function(e,t){return this.putJson("/business/edit",e,t)}},{key:"getAlarmBusinessServerList",value:function(e,t){return this.get("/business/server/list",e,t)}},{key:"getAlarmDictVersion",value:function(e,t){return this.get("/alarm/dict/version",e,t)}},{key:"getBusinessRuleInfo",value:function(e,t){return this.get("/business/info",e,t)}},{key:"getAlarmBusinessGroupList",value:function(e,t){return this.get("/business/group/list",e,t)}},{key:"getAlarmBusinessRuleList",value:function(e,t){return this.get("/business/list",e,t)}},{key:"deleteAlarmBusinessRule",value:function(e,t){return this.deleteJson("/business/rule",e,t)}},{key:"alarmBusinessSwitch",value:function(e,t){return this.putJson("/business/switch",e,t)}},{key:"getAlarmMiddleRuleList",value:function(e,t){return this.get("/middle/list",e,t)}},{key:"deleteAlarmMiddleRule",value:function(e,t){return this.deleteJson("/middle/rule",e,t)}},{key:"alarmMiddleSwitch",value:function(e,t){return this.putJson("/middle/switch",e,t)}},{key:"getAlarmDictMiddleMetrics",value:function(e,t){return this.get("/alarm/dict/middle/metrics",e,t)}},{key:"postAlarmMiddleRuleAdd",value:function(e,t){return this.postJson("/middle/add",e,t)}},{key:"getMiddleRuleInfo",value:function(e,t){return this.get("/middle/info",e,t)}},{key:"getMiddleServerList",value:function(e,t){return this.get("/middle/service",e,t)}},{key:"putAlarmMiddleRuleEdit",value:function(e,t){return this.putJson("/middle/edit",e,t)}},{key:"getAlarmDictMetrics",value:function(e,t){return this.get("/alarm/dict/metrics",e,t)}},{key:"getResourceClientList",value:function(e,t){return this.get("/resource/client/list",e,t)}},{key:"alarmResourceClientDelete",value:function(e,t){return this.deleteJson("/resource/client/rule",e,t)}},{key:"alarmResourceClientSwitch",value:function(e,t){return this.putJson("/resource/client/switch",e,t)}},{key:"alarmResourceClientAdd",value:function(e,t){return this.postJson("/resource/client/add",e,t)}},{key:"alarmResourceClientEdit",value:function(e,t){return this.putJson("/resource/client/edit",e,t)}},{key:"getResourceClientInfo",value:function(e,t){return this.get("/resource/client/info",e,t)}},{key:"getAlarmStatList",value:function(e,t){return this.get("/alarm/stat/list",e,t)}},{key:"getDatasourceData",value:function(e,t){return this.get("/alarm/dict/datasource/data",e,t)}},{key:"getDatasourceInfo",value:function(e,t){return this.get("/alarm/dict/datasource/info",e,t)}},{key:"getAlarmStatType",value:function(e,t){return this.get("/alarm/stat/type",e,t)}},{key:"getCureTypes",value:function(e,t){return this.get("/cure/types",e,t)}},{key:"getCureConfig",value:function(e,t){return this.get("/cure/config",e,t)}},{key:"addCureConfig",value:function(e,t){return this.put("/cure/config",e,t)}},{key:"getDockerClientList",value:function(e,t){return this.get("/docker/client/list",e,t)}},{key:"getCurDockerServer",value:function(e,t){return this.get("/cure/docker/server",e,t)}},{key:"setCurDockerServer",value:function(e,t){return this.post("/cure/docker/server",e,t)}},{key:"getCureLogList",value:function(e,t){return this.get("/cure/log/list",e,t)}},{key:"getCureConsulServerList",value:function(e,t){return this.get("/cure/consul/services",e,t)}},{key:"setCurConsulServer",value:function(e,t){return this.post("/cure/consul/server",e,t)}},{key:"getCurConsulServer",value:function(e,t){return this.get("/cure/consul/server",e,t)}},{key:"deleteCurConsulConfig",value:function(e,t){return this.delete("/cure/config",e,t)}},{key:"putCureSwitch",value:function(e,t){return this.put("/cure/switch",e,t)}},{key:"putAlarmStatusSwitch",value:function(e,t){return this.put("/alarm/status/switch",e,t)}},{key:"getAlarmStatus",value:function(e,t){return this.get("/alarm/status",e,t)}},{key:"getCurServerLogConfig",value:function(e,t){return this.get("/cure/server/log/config",e,t)}},{key:"setCurServerLogConfig",value:function(e,t){return this.postJson("/cure/server/log/config",e,t)}},{key:"getCurServerLogInfo",value:function(e,t){return this.get("/cure/server/log/attribute",e,t)}},{key:"postCureDiskLog",value:function(e,t){return this.postJson("/cure/disk/log",e,t)}},{key:"getDirectoryList",value:function(e,t){return this.post("/remote/directory",e,t)}},{key:"getNodeServerList",value:function(e,t){return this.get("/server/deploy/list",e,t)}},{key:"getNodeServerAllList",value:function(e){return this.get("/server/deploy/all/list",e)}},{key:"getProjectUrl",value:function(e,t){return this.get("/project/project/url",e,t)}},{key:"updateClient",value:function(e,t){return this.put("/client/alias",e,t)}},{key:"deleteClient",value:function(e,t){return this.delete("/client/one",e,t)}},{key:"getDistNumber",value:function(e,t){return this.post("/remote/disk",e,t)}},{key:"getClientBasisInfo",value:function(e,t){return this.post("/remote/foundation",e,t)}},{key:"stopFirewalld",value:function(e,t){return this.post("/remote/firewalld/stop",e,t)}},{key:"updateClientSSH",value:function(e,t){return this.post("/remote/ssh",e,t)}},{key:"addClient",value:function(e,t){return this.put("/remote/client",e,t)}},{key:"updateClinetRequest",value:function(e,t){return this.put("/client/request",e,t)}},{key:"updateClinetEntId",value:function(e,t){return this.put("/client/ent/id",e,t)}},{key:"updateClinetIp",value:function(e,t){return this.put("/client/ip",e,t)}},{key:"getClientInfo",value:function(e,t){return this.get("/remote/client",e,t)}},{key:"getqPaasVersion",value:function(e,t){return this.get("/registerCenter/paas/version",e,t)}},{key:"getClientVersion",value:function(e,t){return this.get("/client/version",e,t)}},{key:"restartRemote",value:function(e,t){return this.put("/remote/restart",e,t)}},{key:"remoteClinetServerIp",value:function(e,t){return this.put("/remote/client/server/ip",e,t)}},{key:"setClientTag",value:function(e,t){return this.post("/client/tag",e,t)}},{key:"getServerAutoDistribute",value:function(e,t){return this.get("/server/auto/distribute",e,t)}},{key:"getProjectRequestList",value:function(e,t){return this.get("/project/list",e,t)}},{key:"setProjectRequestInfo",value:function(e,t){return this.post("/project/request",e,t)}},{key:"getProjectRequestInfo",value:function(e,t){return this.get("/project/request",e,t)}},{key:"getProjectUse",value:function(e,t){return this.post("/project/use",e,t)}},{key:"restartTask",value:function(e,t){return this.put("/task/restart",e,t)}},{key:"deployServerAlarm",value:function(e,t){return this.postJson("/server/deploy/alarm",e,t)}},{key:"getServerDeployAlarm",value:function(e,t){return this.get("/server/deploy/alarm",e,t)}},{key:"getClientDockerInfo",value:function(e,t){return this.get("/client/docker",e,t)}},{key:"getServerList",value:function(e,t){return this.get("/server/server/list",e,t)}},{key:"getServerDeployList",value:function(e,t){return this.get("/server/server/deploy/wait",e,t)}},{key:"distributeServer",value:function(e,t){return this.post("/server/deploy/distribute",e,t)}},{key:"restartServer",value:function(e,t){return this.get("/client/container/restart",e,t)}},{key:"getServerMigrateList",value:function(e,t){return this.get("/server/can/migrate/list",e,t)}},{key:"submitServerMigrate",value:function(e,t){return this.post("/server/migrate",e,t)}},{key:"getServerInfo",value:function(e,t){return this.get("/client/container",e,t)}},{key:"getOneServerInfo",value:function(e,t){return this.get("/server/server",e,t)}},{key:"downloadFile",value:function(e,t){return this.get("/client/download/file",e,t)}},{key:"getClinetFile",value:function(e,t){return this.get("/client/file",e,t)}},{key:"updateClinetFile",value:function(e,t){return this.put("/client/file",e,t)}},{key:"addHostServer",value:function(e,t){return this.post("/server/custom/hosts",e,t)}},{key:"updateHostServer",value:function(e,t){return this.put("/server/custom/hosts",e,t)}},{key:"getCurrentBranch",value:function(e,t){return this.get("/app/safety/branch",e,t)}},{key:"updateCurrentBranch",value:function(e,t){return this.post("/app/safety/branch",e,t)}},{key:"getContainerDirectory",value:function(e,t){return this.post("/container/directory",e,t)}},{key:"downloadContainer",value:function(e,t){return this.post("/container/download",e,t)}},{key:"uploadFrontEndComponent",value:function(e,t){return this.postFileData("/upload/file",e,t)}},{key:"getOpenProductInfo",value:function(e,t){return this.get("/app/open/products",e,t)}},{key:"getHostList",value:function(e,t){return this.get("/server/custom/hosts",e,t)}},{key:"getDefaultHostList",value:function(e,t){return this.get("/server/hosts",e,t)}},{key:"getUseServerGroupList",value:function(e,t){return this.get("/server/group/use/list",e,t)}},{key:"updateDockerCpu",value:function(e,t){return this.put("/docker/cpus",e,t)}},{key:"deleteHostServer",value:function(e,t){return this.delete("/server/custom/hosts",e,t)}},{key:"getDockerRunData",value:function(e,t){return this.get("/docker/run/data",e,t)}},{key:"updateDockerRunData",value:function(e,t){return this.put("/docker/run/data",e,t)}},{key:"updatePortInfo",value:function(e,t){return this.put("/docker/port",e,t)}},{key:"updateVolumeInfo",value:function(e,t){return this.put("/docker/volume",e,t)}},{key:"getTaskAssign",value:function(e,t){return this.get("/task/assign",e,t)}},{key:"getResource",value:function(e,t){return this.get("/client/resource",e,t)}},{key:"getDockerRecreate",value:function(e,t){return this.put("/docker/recreate",e,t)}},{key:"getServerGroupInfo",value:function(e,t){return this.get("/server/group",e,t)}},{key:"updateServerOperate",value:function(e,t){return this.get("/container/operate/exec",e,t)}},{key:"updateDockerNetwork",value:function(e,t){return this.put("/docker/network",e,t)}},{key:"updateDockerEnvironment",value:function(e,t){return this.put("/docker/environment",e,t)}},{key:"getContainerOperateType",value:function(e,t){return this.get("/container/operate/type",e,t)}},{key:"getUpgradeMigrationAlone",value:function(e,t){return this.get("/upgrade/migration/alone",e,t)}},{key:"getContainerOperateDetail",value:function(e,t){return this.get("/container/operate/detail",e,t)}},{key:"updateDockerMemory",value:function(e,t){return this.put("/docker/memory",e,t)}},{key:"updatePackage",value:function(e,t){return this.post("/app/yuanqu/front/update",e,t)}},{key:"getClinetDirectory",value:function(e,t){return this.get("/client/directory",e,t)}},{key:"getTaskList",value:function(e,t){return this.get("/task/list",e,t)}},{key:"taskStautsList",value:function(e,t){return this.get("/task/wait/list",e,t)}},{key:"getAllTaskList",value:function(e,t){return this.get("/task/list/all",e,t)}},{key:"taskAssignChange",value:function(e,t){return this.post("/task/assign/change",e,t)}},{key:"createJavaServer",value:function(e,t){return this.post("/app/create/java",e,t)}},{key:"saveOpenConfig",value:function(e,t){return this.post("/app/open/config",e,t)}},{key:"saveOpenProduct",value:function(e,t){return this.post("/app/open/products",e,t)}},{key:"postProductUpload",value:function(e,t){return this.post("/product/upload",e,t)}},{key:"getProductTaskList",value:function(e,t){return this.get("/product/task/list",e,t)}},{key:"resetProductDownload",value:function(e,t){return this.post("/product/reset/download",e,t)}},{key:"getProductOnlineVersion",value:function(e,t){return this.get("/product/online/version",e,t)}},{key:"postProductConfig",value:function(e,t){return this.post("/product/config",e,t)}},{key:"getProductServernamesTask",value:function(e,t){return this.get("/product/servernames/task",e,t)}},{key:"postProductUpgrade",value:function(e,t){return this.post("/product/upgrade",e,t)}},{key:"postProductServernamesDownload",value:function(e,t){return this.post("/product/servernames/download",e,t)}},{key:"getProductConfig",value:function(e,t){return this.get("/product/config",e,t)}},{key:"getProductRetrieval",value:function(e,t){return this.get("/product/retrieval",e,t)}},{key:"getqPackageDirDetail",value:function(e,t){return this.get("/app/package/dir",e,t)}},{key:"getDockerHubAccount",value:function(e,t){return this.get("/docker/hub/account",e,t)}},{key:"updateDockerImage",value:function(e,t){return this.put("/docker/image/pull",e,t)}},{key:"stopContainer",value:function(e,t){return this.get("/client/container/stop",e,t)}},{key:"deleteContainer",value:function(e,t){return this.delete("/server/remove",e,t)}},{key:"getImageApp",value:function(e,t){return this.put("/app/image/app",e,t)}},{key:"createImage",value:function(e,t){return this.post("/app/create/image",e,t)}},{key:"updateImage",value:function(e,t){return this.post("/app/update/image",e,t)}},{key:"getHubConfig",value:function(e,t){return this.get("/app/hub/config",e,t)}},{key:"getServerListAll",value:function(e,t){return this.get("/server/list",e,t)}},{key:"postAppPortComponent",value:function(e,t){return this.post("/app/port/component",e,t)}},{key:"getAuthInfo",value:function(e,t){return this.get("/auth/auth",e,t)}},{key:"getRegisterList",value:function(e,t){return this.get("/registerCenter/registry/list",e,t)}},{key:"getRegisterLocalList",value:function(e,t){return this.get("/registerCenter/local/list",e,t)}},{key:"getRegisterVersionStatus",value:function(e,t){return this.get("/registerCenter/version/status",e,t)}},{key:"getBackupVersionList",value:function(e,t){return this.get("/registerCenter/backup/versions",e,t)}},{key:"registerCenterBatchBackup",value:function(e,t){return this.get("/registerCenter/publish/batch/backup",e,t)}},{key:"registerCenterReview",value:function(e,t){return this.get("/registerCenter/review",e,t)}},{key:"rebuildServer",value:function(e,t){return this.post("/registerCenter/rebuild/server",e,t)}},{key:"saveRegister",value:function(e,t){return this.post("/registerCenter/save",e,t)}},{key:"getRegisterHistory",value:function(e,t){return this.get("/registerCenter/history/list",e,t)}},{key:"getRegisterBackup",value:function(e,t){return this.get("/registerCenter/backup/list",e,t)}},{key:"deleteRegister",value:function(e,t){return this.delete("/registerCenter/remove",e,t)}},{key:"getRegisterBackupRecover",value:function(e,t){return this.get("/registerCenter/publish/backup",e,t)}},{key:"getRegisterHistoryRecover",value:function(e,t){return this.get("/registerCenter/history/recover",e,t)}},{key:"registerConsul",value:function(e,t){return this.postJson("/registerCenter/publish",e,t)}},{key:"backupRegister",value:function(e,t){return this.postJson("/registerCenter/backup",e,t)}},{key:"saveImportRegister",value:function(e,t){return this.post("/registerCenter/import/config",e,t)}},{key:"getAutomationList",value:function(e,t){return this.get("/automation/list",e,t)}},{key:"postAutomationAgain",value:function(e,t){return this.postJson("/automation/again",e,t)}},{key:"getAutomationVersion",value:function(e,t){return this.get("/automation/version",e,t)}},{key:"postAutomationRun",value:function(e,t){return this.postJson("/automation/run",e,t)}},{key:"getAutomationInfo",value:function(e,t){return this.get("/automation/info",e,t)}},{key:"getAutomationRateList",value:function(e,t){return this.get("/automation/rate/list",e,t)}},{key:"getAutomationPretype",value:function(e,t){return this.get("/automation/pretype",e,t)}},{key:"getDatasourceList",value:function(e,t){return this.get("/alarm/dict/datasource/list",e,t)}},{key:"postDatasourceAdd",value:function(e,t){return this.postJson("/alarm/dict/datasource",e,t)}},{key:"putDatasourceEdit",value:function(e,t){return this.putJson("/alarm/dict/datasource",e,t)}},{key:"postCheckConnect",value:function(e,t){return this.postJson("/alarm/dict/check/connect",e,t)}},{key:"getCheckConnect",value:function(e,t){return this.get("/alarm/dict/check/connect",e,t)}},{key:"getExportLogList",value:function(e,t){return this.get("/info-export/log",e,t)}},{key:"exportInfo",value:function(e,t){return this.get("/info-export",e,t)}},{key:"getIpTablesClientList",value:function(e,t){return this.get("/iptables/client/list",e,t)}},{key:"getIpTablesRuleList",value:function(e,t){return this.get("/iptables/rule/list",e,t)}},{key:"getRuleChainList",value:function(e,t){return this.get("/iptables/chain/list",e,t)}},{key:"ipTablesRuleDisabled",value:function(e,t){return this.get("/iptables/rule/disable",e,t)}},{key:"ipTablesRuleEnable",value:function(e,t){return this.get("/iptables/rule/enable",e,t)}},{key:"addIpTablesRule",value:function(e,t){return this.postJson("/iptables/rule/info",e,t)}},{key:"updateIpTablesRule",value:function(e,t){return this.putJson("/iptables/rule/info",e,t)}},{key:"deleteIpTablesRule",value:function(e,t){return this.delete("/iptables/rule",e,t)}},{key:"getIpTablesParseRule",value:function(e,t){return this.postJson("/iptables/parse/rule",e,t)}},{key:"getIpTablesServerports",value:function(e,t){return this.get("/iptables/server/ports",e,t)}},{key:"getIpTablesbatchValid",value:function(e,t){return this.get("/iptables/batch/valid",e,t)}},{key:"ipTablesbatchDisable",value:function(e,t){return this.postJson("/iptables/rule/batch/disable",e,t)}},{key:"ipTablesbatchEnable",value:function(e,t){return this.postJson("/iptables/rule/batch/enable",e,t)}},{key:"ipTablesbatchCreate",value:function(e,t){return this.get("/iptables/batch/create",e,t)}},{key:"setIptablesStatus",value:function(e,t){return this.postJson("/iptables/control/status",e,t)}},{key:"getWhiteList",value:function(e,t){return this.get("/iptables/config/list",e,t)}},{key:"createWhite",value:function(e,t){return this.postJson("/iptables/config/create",e,t)}},{key:"updateWhite",value:function(e,t){return this.putJson("/iptables/config/modify",e,t)}},{key:"deleteWhite",value:function(e,t){return this.delete("/iptables/config",e,t)}},{key:"getWhiteInfo",value:function(e,t){return this.get("/iptables/config/info",e,t)}},{key:"enableWhite",value:function(e,t){return this.get("/iptables/config/enable",e,t)}},{key:"disableWhite",value:function(e,t){return this.get("/iptables/config/disable",e,t)}},{key:"setWhiteStatus",value:function(e,t){return this.postJson("/iptables/config/status",e,t)}},{key:"getWhiteServerList",value:function(e,t){return this.get("/iptables/usable/servers",e,t)}},{key:"getLoginUserList",value:function(e,t){return this.get("/jumpserver/login/user",e,t)}},{key:"registerLoginUser",value:function(e,t){return this.post("/jumpserver/login/user",e,t)}},{key:"getSysList",value:function(e,t){return this.get("/jumpserver/sys/user",e,t)}},{key:"registerSysUser",value:function(e,t){return this.post("/jumpserver/sys/user",e,t)}},{key:"getAssetsList",value:function(e,t){return this.get("/jumpserver/assets",e,t)}},{key:"registerAsset",value:function(e,t){return this.post("/jumpserver/assets",e,t)}},{key:"getAssetsAuthList",value:function(e,t){return this.get("/jumpserver/asset/permissions",e,t)}},{key:"registerAssetPermission",value:function(e,t){return this.post("/jumpserver/asset/permissions",e,t)}},{key:"getAuthConfig",value:function(e,t){return this.get("/auth/config",e,t)}},{key:"getLogApiLogs",value:function(e,t){return this.get("/log/api/logs",e,t)}},{key:"getSlowList",value:function(e,t){return this.get("/slow/list",e,t)}},{key:"openSlow",value:function(e,t){return this.post("/slow/open",e,t)}},{key:"getSlowStatus",value:function(e,t){return this.get("/slow/status",e,t)}},{key:"editSlow",value:function(e,t){return this.post("/slow/edit",e,t)}},{key:"updateSlowLimit",value:function(e,t){return this.post("/slow/limit",e,t)}},{key:"getSlowCate",value:function(e,t){return this.get("/slow/cate",e,t)}},{key:"closeSlow",value:function(e,t){return this.post("/slow/close",e,t)}},{key:"getUpgradepPlatformBizMigLog",value:function(e,t){return this.get("/upgrade/platform/biz/mig/log",e,t)}},{key:"postUpgradepPlatformBizMig",value:function(e,t){return this.postJson("/upgrade/platform/biz/mig",e,t)}},{key:"getUpgradeServerList",value:function(e,t){return this.get("/upgrade/server/list",e,t)}},{key:"getUseMultipleServerGroupList",value:function(e,t){return this.get("/server/multi/use/list",e,t)}},{key:"getDeployedNodeList",value:function(e,t){return this.get("/server/multi/deploy",e,t)}},{key:"operationDeployNode",value:function(e,t){return this.postJson("/server/multi/deploy",e,t)}},{key:"getServerGroupList",value:function(e,t){return this.get("/server/use/group/list",e,t)}},{key:"getRoleGroupList",value:function(e,t){return this.get("/user/role/group",e,t)}},{key:"getProxyRuleList",value:function(e,t){return this.get("/nginx/proxy/list",e,t)}},{key:"postProxyRule",value:function(e,t){return this.post("/nginx/proxy",e,t)}},{key:"deleteProxyRule",value:function(e,t){return this.delete("/nginx/proxy",e,t)}},{key:"openProxyRule",value:function(e,t){return this.post("/nginx/proxy/open",e,t)}},{key:"closeProxyRule",value:function(e,t){return this.post("/nginx/proxy/close",e,t)}},{key:"getProxyWhiteList",value:function(e,t){return this.get("/nginx/white/list",e,t)}},{key:"getProxyOriginIP",value:function(e,t){return this.get("/nginx/origin/ip",e,t)}},{key:"postProxyWhiteList",value:function(e,t){return this.post("/nginx/white/ip",e,t)}},{key:"deleteProxyWhiteList",value:function(e,t){return this.deleteJson("/nginx/white/ip",e,t)}},{key:"refreshJumperServer",value:function(e,t){return this.post("/jumpserver/recreate",e,t)}}])}(u["a"]),d=(n("f38f"),n("ef1f"),n("8206")),f=n.n(d),p=n("5089"),h=n("f845"),m=n("4360"),g=n("5f87"),v=f.a.create({baseURL:window.opsWebUrl||"",timeout:0});v.interceptors.request.use((function(e){return m["a"].getters.token&&(e.headers["Authorization"]="Bearer "+Object(g["a"])()),e}),(function(e){return Promise.reject(e)})),v.interceptors.response.use((function(e){var t=e.data;return 200!==t.code?401===t.code?(Object(g["b"])(),h["MessageBox"].confirm(t.msg||"请重新登录!","身份令牌错误:",{confirmButtonText:"刷新页面",cancelButtonText:"取消",type:"warning"}).then((function(){m["a"].dispatch("userState/state",{keyName:"resetState",value:""}).then((function(){window.location.reload()}))})).catch((function(){})),!1):4011===t.code?t:(p["default"].prototype.$message({message:t.msg||"数据异常! 请重试",type:"error",duration:0,showClose:!0}),Promise.reject(new Error(t.msg||"Error"))):t}),(function(e){return p["default"].prototype.$message({message:e.message,type:"error",duration:0,showClose:!0}),Promise.reject(e)}));var b=v,y=function(e){return"qfinger"===e?new k(e):"ops"===e?new k(e,b):void 0},k=Object(a["a"])((function e(t,n){var a=this;Object(r["a"])(this,e),this.type=t;var o="qfinger"!==this.type?new l(n):new s,c=function(e){"function"===typeof o[e]&&(a[e]=function(){return o[e].apply(o,arguments)})};for(var u in i)c(u)}))},b20f:function(e,t,n){e.exports={menuText:"#404040",menuActiveText:"#4680ff",subMenuActiveText:"#6d6d6d",menuBg:"#fff",menuHover:"#f4f4f4",subMenuBg:"#f4f4f4",subMenuHover:"#e4e3e3",sideBarWidth:"210px"}},b3b5:function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-user",use:"icon-user-usage",viewBox:"0 0 130 130",content:''});s.a.add(o);t["default"]=o},b96c:function(e,t,n){},b996:function(e,t,n){"use strict";n("a026")},bb90:function(e,t,n){"use strict";n("ec00")},bf0c:function(e,t,n){},c151:function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-imageCount",use:"icon-imageCount-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(o);t["default"]=o},c1fb:function(e,t,n){"use strict";n.d(t,"q",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return s})),n.d(t,"j",(function(){return o})),n.d(t,"N",(function(){return c})),n.d(t,"U",(function(){return u})),n.d(t,"T",(function(){return l})),n.d(t,"M",(function(){return d})),n.d(t,"P",(function(){return f})),n.d(t,"ob",(function(){return p})),n.d(t,"S",(function(){return h})),n.d(t,"sb",(function(){return m})),n.d(t,"nb",(function(){return g})),n.d(t,"pb",(function(){return v})),n.d(t,"rb",(function(){return b})),n.d(t,"qb",(function(){return y})),n.d(t,"tb",(function(){return k})),n.d(t,"l",(function(){return w})),n.d(t,"y",(function(){return _})),n.d(t,"gb",(function(){return C})),n.d(t,"x",(function(){return x})),n.d(t,"z",(function(){return S})),n.d(t,"g",(function(){return L})),n.d(t,"D",(function(){return j})),n.d(t,"fb",(function(){return I})),n.d(t,"F",(function(){return D})),n.d(t,"E",(function(){return M})),n.d(t,"h",(function(){return T})),n.d(t,"i",(function(){return A})),n.d(t,"G",(function(){return z})),n.d(t,"hb",(function(){return O})),n.d(t,"k",(function(){return P})),n.d(t,"ib",(function(){return V})),n.d(t,"e",(function(){return B})),n.d(t,"mb",(function(){return F})),n.d(t,"O",(function(){return H})),n.d(t,"C",(function(){return N})),n.d(t,"c",(function(){return R})),n.d(t,"jb",(function(){return $})),n.d(t,"kb",(function(){return E})),n.d(t,"lb",(function(){return U})),n.d(t,"B",(function(){return J})),n.d(t,"a",(function(){return Z})),n.d(t,"n",(function(){return q})),n.d(t,"V",(function(){return G})),n.d(t,"R",(function(){return W})),n.d(t,"w",(function(){return K})),n.d(t,"m",(function(){return Y})),n.d(t,"Q",(function(){return Q})),n.d(t,"Z",(function(){return X})),n.d(t,"W",(function(){return ee})),n.d(t,"X",(function(){return te})),n.d(t,"Y",(function(){return ne})),n.d(t,"o",(function(){return ae})),n.d(t,"p",(function(){return re})),n.d(t,"A",(function(){return ie})),n.d(t,"L",(function(){return se})),n.d(t,"eb",(function(){return oe})),n.d(t,"K",(function(){return ce})),n.d(t,"db",(function(){return ue})),n.d(t,"H",(function(){return le})),n.d(t,"I",(function(){return de})),n.d(t,"J",(function(){return fe})),n.d(t,"cb",(function(){return pe})),n.d(t,"bb",(function(){return he})),n.d(t,"ab",(function(){return me})),n.d(t,"v",(function(){return ge})),n.d(t,"t",(function(){return ve})),n.d(t,"u",(function(){return be})),n.d(t,"s",(function(){return ye})),n.d(t,"r",(function(){return ke})),n.d(t,"f",(function(){return we}));var a=n("0c6d");function r(){return a["a"].get("/auth/keys")}function i(e){return a["a"].put("/auth/auth",e)}function s(e){return a["a"].delete("/auth/auth",e)}function o(e){return a["a"].get("/auth/auth",e)}function c(e){return a["a"].get("/user/register/init",e)}function u(e){return a["a"].post("/user/login",e)}function l(e){return a["a"].post("/user/encrypt",e)}function d(e){return a["a"].get("/user/user",e)}function f(e){return a["a"].get("/user/register/roles",e)}function p(e){return a["a"].postJson("/user/register/commit",e)}function h(e){return a["a"].get("/user/register/info",e)}function m(e){return a["a"].postJson("/user/register/pass",e)}function g(e){return a["a"].putJson("/user/register/asset",e)}function v(e){return a["a"].postJson("/user/register/create",e)}function b(e){return a["a"].get("/user/register/enable",e)}function y(e){return a["a"].get("/user/register/disable",e)}function k(e){return a["a"].get("/user/register/servers",e)}function w(e){return a["a"].get("/remote/list",e)}function _(e){return a["a"].get("/project/list",e)}function C(e){return a["a"].post("/project/request",e)}function x(e){return a["a"].get("/project/request",e)}function S(e){return a["a"].post("/project/use",e)}function L(e){return a["a"].postJson("/server/deploy/alarm",e)}function j(e){return a["a"].get("/server/deploy/alarm",e)}function I(e){return a["a"].post("/registerCenter/import/config",e)}function D(e){return a["a"].get("/server/server/list",e)}function M(e){return a["a"].get("/server/server/deploy/wait",e)}function T(e){return a["a"].post("/server/deploy/distribute",e)}function A(e){return a["a"].get("/task/list/all",e)}function z(e){return a["a"].get("/server/can/migrate/list",e)}function O(e){return a["a"].post("/server/migrate",e)}function P(e){return a["a"].get("/auth/sys/lock",e)}function V(e){return a["a"].post("/auth/sys/lock",e)}function B(e){return a["a"].delete("/auth/sys/lock",e)}function F(e,t){return a["a"].postFileData("/upload/file",e,t)}function H(e){return a["a"].get("/user/list/page",e)}function N(e){return a["a"].get("/user/role/group",e)}function R(e){return a["a"].post("/user/create",e)}function $(e){return a["a"].put("/user/passwd/other",e)}function E(e){return a["a"].put("/user/passwd/me",e)}function U(e){return a["a"].put("/user/role",e)}function J(e){return a["a"].get("/user/role/allow/list",e)}function Z(e){return a["a"].put("/user/role/allow",e)}function q(e){return a["a"].get("/middleConsole/apply/list",e)}function G(e){return a["a"].post("/middleConsole/operator",e)}function W(e){return a["a"].get("/index/version",e)}function K(e){return a["a"].get("/index/new/version",e)}function Y(e){return a["a"].get("/client/version",e)}function Q(e){return a["a"].get("/index/introduce",e)}function X(e){return a["a"].post("/index/upgrade/server",e)}function ee(e){return a["a"].post("/index/migrate/struct",e)}function te(e){return a["a"].post("/index/upgrade/client",e)}function ne(e){return a["a"].post("/index/upgrade/end",e)}function ae(e){return a["a"].get("/index/is/upgrade",e)}function re(e){return a["a"].get("/index/pwd",e)}function ie(e){return a["a"].get("/registerCenter/paas/version",e)}function se(e){return a["a"].get("/upgrade/qualificate",e)}function oe(e){return a["a"].post("/upgrade/old/server",e)}function ce(e){return a["a"].get("/upgrade/project/files",e)}function ue(e){return a["a"].post("/upgrade/migrate",e)}function le(e){return a["a"].get("/upgrade/is/upgrade",e)}function de(e){return a["a"].get("/upgrade/migration/local",e)}function fe(e){return a["a"].get("/upgrade/migration/local/status",e)}function pe(e){return a["a"].post("/upgrade/end",e)}function he(e){return a["a"].post("/upgrade/deploy/server",e)}function me(e){return a["a"].post("/upgrade/deploy/end",e)}function ge(e){return a["a"].get("/log/jp/storages",e)}function ve(e){return a["a"].get("/log/jp/assets",e)}function be(e){return a["a"].get("/log/jp/logs",e)}function ye(e){return a["a"].get("/log/api/modules",e)}function ke(e){return a["a"].get("/log/api/logs",e)}function we(e){return a["a"].delete("/index/exit",e)}},c2a3:function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-add",use:"icon-add-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(o);t["default"]=o},c517:function(e,t,n){e.exports=n.p+"static/img/role.51fa811c.png"},c6e3:function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-iptables",use:"icon-iptables-usage",viewBox:"0 0 90.13 86.58",content:'\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});s.a.add(o);t["default"]=o},c862:function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-news",use:"icon-news-usage",viewBox:"0 0 42 29",content:'\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n NEW\r\n'});s.a.add(o);t["default"]=o},ca15:function(e,t,n){},cda5:function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-server",use:"icon-server-usage",viewBox:"0 0 1416 1024",content:''});s.a.add(o);t["default"]=o},cf1e2:function(e,t,n){e.exports={menuText:"#404040",menuActiveText:"#4680ff",subMenuActiveText:"#6d6d6d",menuBg:"#fff",menuHover:"#f4f4f4",subMenuBg:"#f4f4f4",subMenuHover:"#e4e3e3",sideBarWidth:"210px"}},d137:function(e,t,n){"use strict";n("f90a")},d4ef1:function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-management",use:"icon-management-usage",viewBox:"0 0 1026 1024",content:''});s.a.add(o);t["default"]=o},d7ec:function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-eye-open",use:"icon-eye-open-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(o);t["default"]=o},dcf8:function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-nested",use:"icon-nested-usage",viewBox:"0 0 128 128",content:''});s.a.add(o);t["default"]=o},eb1b:function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-form",use:"icon-form-usage",viewBox:"0 0 128 128",content:''});s.a.add(o);t["default"]=o},ec00:function(e,t,n){},ec15:function(e,t,n){"use strict";n.r(t),n.d(t,"getKey",(function(){return r})),n.d(t,"getUserInfo",(function(){return i})),n.d(t,"getClientList",(function(){return s})),n.d(t,"getDirectoryList",(function(){return o})),n.d(t,"getNodeServerList",(function(){return c})),n.d(t,"getNodeServerAllList",(function(){return u})),n.d(t,"updateClient",(function(){return l})),n.d(t,"getProjectUrl",(function(){return d})),n.d(t,"deleteClient",(function(){return f})),n.d(t,"getDistNumber",(function(){return p})),n.d(t,"getClientBasisInfo",(function(){return h})),n.d(t,"stopFirewalld",(function(){return m})),n.d(t,"updateClientSSH",(function(){return g})),n.d(t,"addClient",(function(){return v})),n.d(t,"updateClinetRequest",(function(){return b})),n.d(t,"updateClinetEntId",(function(){return y})),n.d(t,"updateClinetIp",(function(){return k})),n.d(t,"getClientInfo",(function(){return w})),n.d(t,"getqPaasVersion",(function(){return _})),n.d(t,"getClientVersion",(function(){return C})),n.d(t,"restartRemote",(function(){return x})),n.d(t,"remoteClinetServerIp",(function(){return S})),n.d(t,"getClientTagList",(function(){return L})),n.d(t,"setClientTag",(function(){return j})),n.d(t,"setClientTags",(function(){return I})),n.d(t,"setClientTagExpect",(function(){return D})),n.d(t,"getServerAutoDistribute",(function(){return M})),n.d(t,"getProjectRequestList",(function(){return T})),n.d(t,"setProjectRequestInfo",(function(){return A})),n.d(t,"getProjectRequestInfo",(function(){return z})),n.d(t,"getProjectUse",(function(){return O})),n.d(t,"restartTask",(function(){return P})),n.d(t,"deployServerAlarm",(function(){return V})),n.d(t,"getServerDeployAlarm",(function(){return B})),n.d(t,"getClientDockerInfo",(function(){return F})),n.d(t,"getServerList",(function(){return H})),n.d(t,"getServerDeployList",(function(){return N})),n.d(t,"distributeServer",(function(){return R})),n.d(t,"restartServer",(function(){return $})),n.d(t,"getServerMigrateList",(function(){return E})),n.d(t,"submitServerMigrate",(function(){return U})),n.d(t,"getServerInfo",(function(){return J})),n.d(t,"getOneServerInfo",(function(){return Z})),n.d(t,"downloadFile",(function(){return q})),n.d(t,"getClinetFile",(function(){return G})),n.d(t,"updateClinetFile",(function(){return W})),n.d(t,"addHostServer",(function(){return K})),n.d(t,"updateHostServer",(function(){return Y})),n.d(t,"getCurrentBranch",(function(){return Q})),n.d(t,"updateCurrentBranch",(function(){return X})),n.d(t,"getContainerDirectory",(function(){return ee})),n.d(t,"downloadContainer",(function(){return te})),n.d(t,"uploadFrontEndComponent",(function(){return ne})),n.d(t,"getOpenProductInfo",(function(){return ae})),n.d(t,"uploadOpenPlatformPack",(function(){return re})),n.d(t,"saveOpenPlatformPack",(function(){return ie})),n.d(t,"updateOpenPlatformPack",(function(){return se})),n.d(t,"getHostList",(function(){return oe})),n.d(t,"getDefaultHostList",(function(){return ce})),n.d(t,"getUseServerGroupList",(function(){return ue})),n.d(t,"updateDockerCpu",(function(){return le})),n.d(t,"deleteHostServer",(function(){return de})),n.d(t,"getDockerRunData",(function(){return fe})),n.d(t,"updateDockerRunData",(function(){return pe})),n.d(t,"updatePortInfo",(function(){return he})),n.d(t,"updateVolumeInfo",(function(){return me})),n.d(t,"getTaskAssign",(function(){return ge})),n.d(t,"getResource",(function(){return ve})),n.d(t,"getDockerRecreate",(function(){return be})),n.d(t,"getServerGroupInfo",(function(){return ye})),n.d(t,"updateServerOperate",(function(){return ke})),n.d(t,"updateDockerNetwork",(function(){return we})),n.d(t,"updateDockerEnvironment",(function(){return _e})),n.d(t,"getContainerOperateType",(function(){return Ce})),n.d(t,"getUpgradeMigrationAlone",(function(){return xe})),n.d(t,"getContainerOperateDetail",(function(){return Se})),n.d(t,"updateDockerMemory",(function(){return Le})),n.d(t,"updatePackage",(function(){return je})),n.d(t,"getClinetDirectory",(function(){return Ie})),n.d(t,"getTaskList",(function(){return De})),n.d(t,"taskStautsList",(function(){return Me})),n.d(t,"getAllTaskList",(function(){return Te})),n.d(t,"taskAssignChange",(function(){return Ae})),n.d(t,"postProductServernamesDownload",(function(){return ze})),n.d(t,"postProductUpload",(function(){return Oe})),n.d(t,"getProductTaskList",(function(){return Pe})),n.d(t,"resetProductDownload",(function(){return Ve})),n.d(t,"getProductOnlineVersion",(function(){return Be})),n.d(t,"postProductConfig",(function(){return Fe})),n.d(t,"getProductServernamesTask",(function(){return He})),n.d(t,"postProductUpgrade",(function(){return Ne})),n.d(t,"getProductConfig",(function(){return Re})),n.d(t,"getProductRetrieval",(function(){return $e})),n.d(t,"createJavaServer",(function(){return Ee})),n.d(t,"saveOpenConfig",(function(){return Ue})),n.d(t,"saveOpenProduct",(function(){return Je})),n.d(t,"getqPackageDirDetail",(function(){return Ze})),n.d(t,"getDockerHubAccount",(function(){return qe})),n.d(t,"updateDockerImage",(function(){return Ge})),n.d(t,"getConsoleSelfApplyList",(function(){return We})),n.d(t,"applyMiddleConsole",(function(){return Ke})),n.d(t,"stopContainer",(function(){return Ye})),n.d(t,"deleteContainer",(function(){return Qe})),n.d(t,"getImageApp",(function(){return Xe})),n.d(t,"createImage",(function(){return et})),n.d(t,"updateImage",(function(){return tt})),n.d(t,"getHubConfig",(function(){return nt})),n.d(t,"getServerListAll",(function(){return at})),n.d(t,"postAppPortComponent",(function(){return rt})),n.d(t,"getAuthInfo",(function(){return it})),n.d(t,"getJDKVersionList",(function(){return st})),n.d(t,"getBackupFileList",(function(){return ot})),n.d(t,"deleteBackup",(function(){return ct})),n.d(t,"getBackupTypes",(function(){return ut})),n.d(t,"getBackupRules",(function(){return lt})),n.d(t,"getBackupConfig",(function(){return dt})),n.d(t,"updateBackupRules",(function(){return ft})),n.d(t,"getBackupSetting",(function(){return pt})),n.d(t,"putBackupSetting",(function(){return ht})),n.d(t,"getBackupClient",(function(){return mt})),n.d(t,"getBackupCores",(function(){return gt})),n.d(t,"getBackupDumperStatus",(function(){return vt})),n.d(t,"getAlarmLogList",(function(){return bt})),n.d(t,"getAlarmDict",(function(){return yt})),n.d(t,"postAlarmBusinessRuleAdd",(function(){return kt})),n.d(t,"putAlarmBusinessRuleEdit",(function(){return wt})),n.d(t,"getAlarmBusinessServerList",(function(){return _t})),n.d(t,"getAlarmDictVersion",(function(){return Ct})),n.d(t,"getBusinessRuleInfo",(function(){return xt})),n.d(t,"getAlarmBusinessGroupList",(function(){return St})),n.d(t,"getAlarmBusinessRuleList",(function(){return Lt})),n.d(t,"deleteAlarmBusinessRule",(function(){return jt})),n.d(t,"alarmBusinessSwitch",(function(){return It})),n.d(t,"getAlarmMiddleRuleList",(function(){return Dt})),n.d(t,"deleteAlarmMiddleRule",(function(){return Mt})),n.d(t,"alarmMiddleSwitch",(function(){return Tt})),n.d(t,"getAlarmDictMiddleMetrics",(function(){return At})),n.d(t,"postAlarmMiddleRuleAdd",(function(){return zt})),n.d(t,"getMiddleRuleInfo",(function(){return Ot})),n.d(t,"getMiddleServerList",(function(){return Pt})),n.d(t,"putAlarmMiddleRuleEdit",(function(){return Vt})),n.d(t,"getAlarmDictMetrics",(function(){return Bt})),n.d(t,"getResourceClientList",(function(){return Ft})),n.d(t,"alarmResourceClientDelete",(function(){return Ht})),n.d(t,"alarmResourceClientSwitch",(function(){return Nt})),n.d(t,"alarmResourceClientAdd",(function(){return Rt})),n.d(t,"alarmResourceClientEdit",(function(){return $t})),n.d(t,"getResourceClientInfo",(function(){return Et})),n.d(t,"getAlarmStatList",(function(){return Ut})),n.d(t,"getAlarmStatType",(function(){return Jt})),n.d(t,"getCureTypes",(function(){return Zt})),n.d(t,"getCureConfig",(function(){return qt})),n.d(t,"addCureConfig",(function(){return Gt})),n.d(t,"getDockerClientList",(function(){return Wt})),n.d(t,"getCurDockerServer",(function(){return Kt})),n.d(t,"setCurDockerServer",(function(){return Yt})),n.d(t,"getCureLogList",(function(){return Qt})),n.d(t,"getCureConsulServerList",(function(){return Xt})),n.d(t,"setCurConsulServer",(function(){return en})),n.d(t,"getCurConsulServer",(function(){return tn})),n.d(t,"deleteCurConsulConfig",(function(){return nn})),n.d(t,"getCurServerLogConfig",(function(){return an})),n.d(t,"putCureSwitch",(function(){return rn})),n.d(t,"putAlarmStatusSwitch",(function(){return sn})),n.d(t,"getAlarmStatus",(function(){return on})),n.d(t,"setCurServerLogConfig",(function(){return cn})),n.d(t,"getCurServerLogInfo",(function(){return un})),n.d(t,"postCureDiskLog",(function(){return ln})),n.d(t,"getRegisterList",(function(){return dn})),n.d(t,"getRegisterLocalList",(function(){return fn})),n.d(t,"getRegisterVersionStatus",(function(){return pn})),n.d(t,"getBackupVersionList",(function(){return hn})),n.d(t,"registerCenterBatchBackup",(function(){return mn})),n.d(t,"registerCenterReview",(function(){return gn})),n.d(t,"rebuildServer",(function(){return vn})),n.d(t,"deleteRegister",(function(){return bn})),n.d(t,"saveRegister",(function(){return yn})),n.d(t,"getRegisterHistory",(function(){return kn})),n.d(t,"getRegisterBackup",(function(){return wn})),n.d(t,"getRegisterBackupRecover",(function(){return _n})),n.d(t,"getRegisterHistoryRecover",(function(){return Cn})),n.d(t,"registerConsul",(function(){return xn})),n.d(t,"backupRegister",(function(){return Sn})),n.d(t,"saveImportRegister",(function(){return Ln})),n.d(t,"getAutomationList",(function(){return jn})),n.d(t,"postAutomationAgain",(function(){return In})),n.d(t,"getAutomationVersion",(function(){return Dn})),n.d(t,"postAutomationRun",(function(){return Mn})),n.d(t,"getAutomationInfo",(function(){return Tn})),n.d(t,"getAutomationRateList",(function(){return An})),n.d(t,"getAutomationPretype",(function(){return zn})),n.d(t,"getDatasourceList",(function(){return On})),n.d(t,"getDatasourceData",(function(){return Pn})),n.d(t,"getDatasourceInfo",(function(){return Vn})),n.d(t,"postDatasourceAdd",(function(){return Bn})),n.d(t,"putDatasourceEdit",(function(){return Fn})),n.d(t,"postCheckConnect",(function(){return Hn})),n.d(t,"getCheckConnect",(function(){return Nn})),n.d(t,"getExportLogList",(function(){return Rn})),n.d(t,"exportInfo",(function(){return $n})),n.d(t,"getIpTablesClientList",(function(){return En})),n.d(t,"getIpTablesRuleList",(function(){return Un})),n.d(t,"getRuleChainList",(function(){return Jn})),n.d(t,"ipTablesRuleDisabled",(function(){return Zn})),n.d(t,"ipTablesRuleEnable",(function(){return qn})),n.d(t,"addIpTablesRule",(function(){return Gn})),n.d(t,"updateIpTablesRule",(function(){return Wn})),n.d(t,"deleteIpTablesRule",(function(){return Kn})),n.d(t,"getIpTablesParseRule",(function(){return Yn})),n.d(t,"getIpTablesServerports",(function(){return Qn})),n.d(t,"getIpTablesbatchValid",(function(){return Xn})),n.d(t,"ipTablesbatchDisable",(function(){return ea})),n.d(t,"ipTablesbatchEnable",(function(){return ta})),n.d(t,"ipTablesbatchCreate",(function(){return na})),n.d(t,"setIptablesStatus",(function(){return aa})),n.d(t,"getWhiteList",(function(){return ra})),n.d(t,"createWhite",(function(){return ia})),n.d(t,"updateWhite",(function(){return sa})),n.d(t,"deleteWhite",(function(){return oa})),n.d(t,"getWhiteInfo",(function(){return ca})),n.d(t,"enableWhite",(function(){return ua})),n.d(t,"disableWhite",(function(){return la})),n.d(t,"setWhiteStatus",(function(){return da})),n.d(t,"getWhiteServerList",(function(){return fa})),n.d(t,"getLoginUserList",(function(){return pa})),n.d(t,"registerLoginUser",(function(){return ha})),n.d(t,"getSysList",(function(){return ma})),n.d(t,"registerSysUser",(function(){return ga})),n.d(t,"getAssetsList",(function(){return va})),n.d(t,"registerAsset",(function(){return ba})),n.d(t,"getAssetsAuthList",(function(){return ya})),n.d(t,"registerAssetPermission",(function(){return ka})),n.d(t,"getJumperServerServer",(function(){return wa})),n.d(t,"getJumperServerLoginUrl",(function(){return _a})),n.d(t,"setJumperServerssoSetting",(function(){return Ca})),n.d(t,"getAuthConfig",(function(){return xa})),n.d(t,"getLogApiLogs",(function(){return Sa})),n.d(t,"getSlowList",(function(){return La})),n.d(t,"openSlow",(function(){return ja})),n.d(t,"getSlowStatus",(function(){return Ia})),n.d(t,"editSlow",(function(){return Da})),n.d(t,"updateSlowLimit",(function(){return Ma})),n.d(t,"getSlowCate",(function(){return Ta})),n.d(t,"closeSlow",(function(){return Aa})),n.d(t,"getUpgradepPlatformBizMigLog",(function(){return za})),n.d(t,"postUpgradepPlatformBizMig",(function(){return Oa})),n.d(t,"getUpgradeServerList",(function(){return Pa})),n.d(t,"getJumpserverSsoSetting",(function(){return Va})),n.d(t,"getJumperserverSsoUser",(function(){return Ba})),n.d(t,"postJumpserverSsoSetting",(function(){return Fa})),n.d(t,"postJumpserverSsoHost",(function(){return Ha})),n.d(t,"getDeployedNodeList",(function(){return Na})),n.d(t,"operationDeployNode",(function(){return Ra})),n.d(t,"getUseMultipleServerGroupList",(function(){return $a})),n.d(t,"getServerGroupList",(function(){return Ea})),n.d(t,"getNodeAssetList",(function(){return Ua})),n.d(t,"getNodeAssetRegister",(function(){return Ja})),n.d(t,"getServeAssetList",(function(){return Za})),n.d(t,"getServeAssetRegister",(function(){return qa})),n.d(t,"getUserRoleList",(function(){return Ga})),n.d(t,"getUserRoleRegister",(function(){return Wa})),n.d(t,"getAssetsAuth",(function(){return Ka})),n.d(t,"getRoleGroupList",(function(){return Ya})),n.d(t,"getIgnoredRule",(function(){return Qa})),n.d(t,"getIgnoredOption",(function(){return Xa})),n.d(t,"putIgnoredRule",(function(){return er})),n.d(t,"getIgnoredList",(function(){return tr})),n.d(t,"getIgnoredTableList",(function(){return nr})),n.d(t,"getIgnoredSummary",(function(){return ar})),n.d(t,"getProxyRuleList",(function(){return rr})),n.d(t,"postProxyRule",(function(){return ir})),n.d(t,"deleteProxyRule",(function(){return sr})),n.d(t,"openProxyRule",(function(){return or})),n.d(t,"closeProxyRule",(function(){return cr})),n.d(t,"getProxyWhiteList",(function(){return ur})),n.d(t,"getProxyOriginIP",(function(){return lr})),n.d(t,"postProxyWhiteList",(function(){return dr})),n.d(t,"deleteProxyWhiteList",(function(){return fr})),n.d(t,"refreshJumperServer",(function(){return pr})),n.d(t,"jumperEnvExist",(function(){return hr})),n.d(t,"registerConsulLocalConfig",(function(){return mr}));var a=n("0c6d");function r(){return a["a"].get("/auth/key")}function i(e){return a["a"].get("/user/user",e)}function s(e){return a["a"].get("/remote/list",e)}function o(e){return a["a"].post("/remote/directory",e)}function c(e){return a["a"].get("/server/deploy/list",e)}function u(e){return a["a"].get("/server/deploy/all/list",e)}function l(e){return a["a"].put("/client/alias",e)}function d(e){return a["a"].get("/project/project/url",e)}function f(e){return a["a"].delete("/client/one",e)}function p(e){return a["a"].post("/remote/disk",e)}function h(e){return a["a"].post("/remote/foundation",e)}function m(e){return a["a"].post("/remote/firewalld/stop",e)}function g(e){return a["a"].post("/remote/ssh",e)}function v(e){return a["a"].put("/remote/client",e)}function b(e){return a["a"].put("/client/request",e)}function y(e){return a["a"].put("/client/ent/id",e)}function k(e){return a["a"].put("/client/ip",e)}function w(e){return a["a"].get("/remote/client",e)}function _(e){return a["a"].get("/registerCenter/paas/version",e)}function C(e){return a["a"].get("/client/version",e)}function x(e){return a["a"].put("/remote/restart",e)}function S(e){return a["a"].put("/remote/client/server/ip",e)}function L(e){return a["a"].get("/client/tag/list",e)}function j(e){return a["a"].post("/client/tag",e)}function I(e){return a["a"].post("/client/tags",e)}function D(e){return a["a"].get("/client/tag/expect",e)}function M(e){return a["a"].get("/server/auto/distribute",e)}function T(e){return a["a"].get("/project/list",e)}function A(e){return a["a"].post("/project/request",e)}function z(e){return a["a"].get("/project/request",e)}function O(e){return a["a"].post("/project/use",e)}function P(e){return a["a"].put("/task/restart",e)}function V(e){return a["a"].postJson("/server/deploy/alarm",e)}function B(e){return a["a"].get("/server/deploy/alarm",e)}function F(e){return a["a"].get("/client/docker",e)}function H(e){return a["a"].get("/server/server/list",e)}function N(e){return a["a"].get("/server/server/deploy/wait",e)}function R(e){return a["a"].post("/server/deploy/distribute",e)}function $(e){return a["a"].get("/client/container/restart",e)}function E(e){return a["a"].get("/server/can/migrate/list",e)}function U(e){return a["a"].post("/server/migrate",e)}function J(e){return a["a"].get("/client/container",e)}function Z(e){return a["a"].get("/server/server",e)}function q(e){return a["a"].get("/client/download/file",e)}function G(e){return a["a"].get("/client/file",e)}function W(e){return a["a"].put("/client/file",e)}function K(e){return a["a"].post("/server/custom/hosts",e)}function Y(e){return a["a"].put("/server/custom/hosts",e)}function Q(e){return a["a"].get("/app/safety/branch",e)}function X(e){return a["a"].post("/app/safety/branch",e)}function ee(e){return a["a"].post("/container/directory",e)}function te(e){return a["a"].post("/container/download",e)}function ne(e,t){return a["a"].postFileData("/upload/file",e,t)}function ae(e){return a["a"].get("/app/open/products",e)}function re(e,t){return a["a"].postFileData("/OpenPlatformPack/upload",e,t)}function ie(e){return a["a"].postJson("/OpenPlatformPack/save",e)}function se(e){return a["a"].postJson("/OpenPlatformPack/create?update=1",e)}function oe(e){return a["a"].get("/server/custom/hosts",e)}function ce(e){return a["a"].get("/server/hosts",e)}function ue(e){return a["a"].get("/server/group/use/list",e)}function le(e){return a["a"].put("/docker/cpus",e)}function de(e){return a["a"].delete("/server/custom/hosts",e)}function fe(e){return a["a"].get("/docker/run/data",e)}function pe(e){return a["a"].put("/docker/run/data",e)}function he(e){return a["a"].put("/docker/port",e)}function me(e){return a["a"].put("/docker/volume",e)}function ge(e){return a["a"].get("/task/assign",e)}function ve(e){return a["a"].get("/client/resource",e)}function be(e){return a["a"].put("/docker/recreate",e)}function ye(e){return a["a"].get("/server/group",e)}function ke(e){return a["a"].get("/container/operate/exec",e)}function we(e){return a["a"].put("/docker/network",e)}function _e(e){return a["a"].put("/docker/environment",e)}function Ce(e){return a["a"].get("/container/operate/type",e)}function xe(e){return a["a"].get("/upgrade/migration/alone",e)}function Se(e){return a["a"].get("/container/operate/detail",e)}function Le(e){return a["a"].put("/docker/memory",e)}function je(e){return a["a"].post("/app/yuanqu/front/update",e)}function Ie(e){return a["a"].get("/client/directory",e)}function De(e){return a["a"].get("/task/list",e)}function Me(e){return a["a"].get("/task/wait/list",e)}function Te(e){return a["a"].get("/task/list/all",e)}function Ae(e){return a["a"].post("/task/assign/change",e)}function ze(e){return a["a"].post("/product/servernames/download",e)}function Oe(e){return a["a"].post("/product/upload",e)}function Pe(e){return a["a"].get("/product/task/list",e)}function Ve(e){return a["a"].post("/product/reset/download",e)}function Be(e){return a["a"].get("/product/online/version",e)}function Fe(e){return a["a"].post("/product/config",e)}function He(e){return a["a"].get("/product/servernames/task",e)}function Ne(e){return a["a"].post("/product/upgrade",e)}function Re(e){return a["a"].get("/product/config",e)}function $e(e){return a["a"].get("/product/retrieval",e)}function Ee(e){return a["a"].post("/app/create/java",e)}function Ue(e){return a["a"].post("/app/open/config",e)}function Je(e){return a["a"].post("/app/open/products",e)}function Ze(e){return a["a"].get("/app/package/dir",e)}function qe(e){return a["a"].get("/docker/hub/account",e)}function Ge(e){return a["a"].put("/docker/image/pull",e)}function We(e){return a["a"].get("/middleConsole/self/apply/list",e)}function Ke(e){return a["a"].put("/middleConsole/apply",e)}function Ye(e){return a["a"].get("/client/container/stop",e)}function Qe(e){return a["a"].delete("/server/remove",e)}function Xe(e){return a["a"].put("/app/image/app",e)}function et(e){return a["a"].post("/app/create/image",e)}function tt(e){return a["a"].post("/app/update/image",e)}function nt(e){return a["a"].get("/app/hub/config",e)}function at(e){return a["a"].get("/server/list",e)}function rt(e){return a["a"].post("/app/port/component",e)}function it(e){return a["a"].get("/auth/auth",e)}function st(e){return a["a"].get("/app/jdk/version",e)}function ot(e){return a["a"].get("/backup/files",e)}function ct(e){return a["a"].delete("/backup/log/by",e)}function ut(e){return a["a"].get("/backup/types",e)}function lt(e){return a["a"].get("/backup/rules",e)}function dt(e){return a["a"].get("/backup/config",e)}function ft(e){return a["a"].postJson("/backup/upd/rules",e)}function pt(e){return a["a"].get("/backup/setting",e)}function ht(e){return a["a"].putJson("/backup/setting",e)}function mt(e){return a["a"].get("/backup/client",e)}function gt(e){return a["a"].get("/backup/cores",e)}function vt(e){return a["a"].get("/backup/dumper/status",e)}function bt(e){return a["a"].get("/alarm/log/list",e)}function yt(e){return a["a"].get("/alarm/dict/dict",e)}function kt(e){return a["a"].postJson("/business/add",e)}function wt(e){return a["a"].putJson("/business/edit",e)}function _t(e){return a["a"].get("/business/server/list",e)}function Ct(e){return a["a"].get("/alarm/dict/version",e)}function xt(e){return a["a"].get("/business/info",e)}function St(e){return a["a"].get("/business/group/list",e)}function Lt(e){return a["a"].get("/business/list",e)}function jt(e){return a["a"].deleteJson("/business/rule",e)}function It(e){return a["a"].putJson("/business/switch",e)}function Dt(e){return a["a"].get("/middle/list",e)}function Mt(e){return a["a"].deleteJson("/middle/rule",e)}function Tt(e){return a["a"].putJson("/middle/switch",e)}function At(e){return a["a"].get("/alarm/dict/middle/metrics",e)}function zt(e){return a["a"].postJson("/middle/add",e)}function Ot(e){return a["a"].get("/middle/info",e)}function Pt(e){return a["a"].get("/middle/service",e)}function Vt(e){return a["a"].putJson("/middle/edit",e)}function Bt(e){return a["a"].get("/alarm/dict/metrics",e)}function Ft(e){return a["a"].get("/resource/client/list",e)}function Ht(e){return a["a"].deleteJson("/resource/client/rule",e)}function Nt(e){return a["a"].putJson("/resource/client/switch",e)}function Rt(e){return a["a"].postJson("/resource/client/add",e)}function $t(e){return a["a"].putJson("/resource/client/edit",e)}function Et(e){return a["a"].get("/resource/client/info",e)}function Ut(e){return a["a"].get("/alarm/stat/list",e)}function Jt(e){return a["a"].get("/alarm/stat/type",e)}function Zt(e){return a["a"].get("/cure/types",e)}function qt(e){return a["a"].get("/cure/config",e)}function Gt(e){return a["a"].put("/cure/config",e)}function Wt(e){return a["a"].get("/docker/client/list",e)}function Kt(e){return a["a"].get("/cure/docker/server",e)}function Yt(e){return a["a"].post("/cure/docker/server",e)}function Qt(e){return a["a"].get("/cure/log/list",e)}function Xt(e){return a["a"].get("/cure/consul/services",e)}function en(e){return a["a"].post("/cure/consul/server",e)}function tn(e){return a["a"].get("/cure/consul/server",e)}function nn(e){return a["a"].delete("/cure/config",e)}function an(e){return a["a"].get("/cure/server/log/config",e)}function rn(e){return a["a"].put("/cure/switch",e)}function sn(e){return a["a"].put("/alarm/status/switch",e)}function on(e){return a["a"].get("/alarm/status",e)}function cn(e){return a["a"].postJson("/cure/server/log/config",e)}function un(e){return a["a"].get("/cure/server/log/attribute",e)}function ln(e){return a["a"].postJson("/cure/disk/log",e)}function dn(e){return a["a"].get("/registerCenter/registry/list",e)}function fn(e){return a["a"].get("/registerCenter/local/list",e)}function pn(e){return a["a"].get("/registerCenter/version/status",e)}function hn(e){return a["a"].get("/registerCenter/backup/versions",e)}function mn(e){return a["a"].get("/registerCenter/publish/batch/backup",e)}function gn(e){return a["a"].get("/registerCenter/review",e)}function vn(e){return a["a"].postJson("/registerCenter/rebuild/server",e)}function bn(e){return a["a"].delete("/registerCenter/remove",e)}function yn(e){return a["a"].post("/registerCenter/save",e)}function kn(e){return a["a"].get("/registerCenter/history/list",e)}function wn(e){return a["a"].get("/registerCenter/backup/list",e)}function _n(e){return a["a"].get("/registerCenter/publish/backup",e)}function Cn(e){return a["a"].get("/registerCenter/history/recover",e)}function xn(e){return a["a"].postJson("/registerCenter/publish",e)}function Sn(e){return a["a"].postJson("/registerCenter/backup",e)}function Ln(e){return a["a"].post("/registerCenter/import/config",e)}function jn(e){return a["a"].get("/automation/list",e)}function In(e){return a["a"].postJson("/automation/again",e)}function Dn(e){return a["a"].get("/automation/version",e)}function Mn(e){return a["a"].postJson("/automation/run",e)}function Tn(e){return a["a"].get("/automation/info",e)}function An(e){return a["a"].get("/automation/rate/list",e)}function zn(e){return a["a"].get("/automation/pretype",e)}function On(e){return a["a"].get("/alarm/dict/datasource/list",e)}function Pn(e){return a["a"].get("/alarm/dict/datasource/data",e)}function Vn(e){return a["a"].get("/alarm/dict/datasource/info",e)}function Bn(e){return a["a"].postJson("/alarm/dict/datasource",e)}function Fn(e){return a["a"].putJson("/alarm/dict/datasource",e)}function Hn(e){return a["a"].postJson("/alarm/dict/check/connect",e)}function Nn(e){return a["a"].get("/alarm/dict/check/connect",e)}function Rn(e){return a["a"].get("/info-export/log",e)}function $n(e){return a["a"].get("/info-export",e)}function En(e){return a["a"].get("/iptables/client/list",e)}function Un(e){return a["a"].get("/iptables/rule/list",e)}function Jn(e){return a["a"].get("/iptables/chain/list",e)}function Zn(e){return a["a"].get("/iptables/rule/disable",e)}function qn(e){return a["a"].get("/iptables/rule/enable",e)}function Gn(e){return a["a"].postJson("/iptables/rule/info",e)}function Wn(e){return a["a"].putJson("/iptables/rule/info",e)}function Kn(e){return a["a"].delete("/iptables/rule",e)}function Yn(e){return a["a"].postJson("/iptables/parse/rule",e)}function Qn(e){return a["a"].get("/iptables/server/ports",e)}function Xn(e){return a["a"].get("/iptables/batch/valid",e)}function ea(e){return a["a"].postJson("/iptables/rule/batch/disable",e)}function ta(e){return a["a"].postJson("/iptables/rule/batch/enable",e)}function na(e){return a["a"].get("/iptables/batch/create",e)}function aa(e){return a["a"].postJson("/iptables/control/status",e)}function ra(e){return a["a"].get("/iptables/config/list",e)}function ia(e){return a["a"].postJson("/iptables/config/create",e)}function sa(e){return a["a"].putJson("/iptables/config/modify",e)}function oa(e){return a["a"].delete("/iptables/config",e)}function ca(e){return a["a"].get("/iptables/config/info",e)}function ua(e){return a["a"].get("/iptables/config/enable",e)}function la(e){return a["a"].get("/iptables/config/disable",e)}function da(e){return a["a"].postJson("/iptables/config/status",e)}function fa(e){return a["a"].get("/iptables/usable/servers",e)}function pa(e){return a["a"].get("/jumpserver/login/user",e)}function ha(e){return a["a"].post("/jumpserver/login/user",e)}function ma(e){return a["a"].get("/jumpserver/sys/user",e)}function ga(e){return a["a"].post("/jumpserver/sys/user",e)}function va(e){return a["a"].get("/jumpserver/assets",e)}function ba(e){return a["a"].post("/jumpserver/assets",e)}function ya(e){return a["a"].get("/jumpserver/asset/permissions",e)}function ka(e){return a["a"].post("/jumpserver/asset/permissions",e)}function wa(e){return a["a"].get("/jumpserver/sso/login/servers",e)}function _a(e){return a["a"].get("/jumpserver/sso/login/url",e)}function Ca(e){return a["a"].post("/jumpserver/sso/setting",e)}function xa(e){return a["a"].get("/auth/config",e)}function Sa(e){return a["a"].get("/log/api/logs",e)}function La(e){return a["a"].get("/slow/list",e)}function ja(e){return a["a"].post("/slow/open",e)}function Ia(e){return a["a"].get("/slow/status",e)}function Da(e){return a["a"].post("/slow/edit",e)}function Ma(e){return a["a"].post("/slow/limit",e)}function Ta(e){return a["a"].get("/slow/cate",e)}function Aa(e){return a["a"].post("/slow/close",e)}function za(e){return a["a"].get("/upgrade/platform/biz/mig/log",e)}function Oa(e){return a["a"].postJson("/upgrade/platform/biz/mig",e)}function Pa(e){return a["a"].get("/upgrade/server/list",e)}function Va(e){return a["a"].get("/jumpserver/sso/setting",e)}function Ba(e){return a["a"].get("/jumpserver/jms/user",e)}function Fa(e){return a["a"].postJson("/jumpserver/sso/setting",e)}function Ha(e){return a["a"].postJson("/jumpserver/sso/host",e)}function Na(e){return a["a"].get("/server/multi/deploy",e)}function Ra(e){return a["a"].postJson("/server/multi/deploy",e)}function $a(e){return a["a"].get("/server/multi/use/list",e)}function Ea(e){return a["a"].get("/server/use/group/list",e)}function Ua(e){return a["a"].get("/jumpserver/node/list",e)}function Ja(e){return a["a"].get("/jumpserver/register/node",e)}function Za(e){return a["a"].get("/jumpserver/server/list",e)}function qa(e){return a["a"].get("/jumpserver/register/server",e)}function Ga(e){return a["a"].get("/jumpserver/group/list",e)}function Wa(e){return a["a"].get("/jumpserver/register/group",e)}function Ka(e){return a["a"].get("/jumpserver/register/perms",e)}function Ya(e){return a["a"].get("/user/role/group",e)}function Qa(e){return a["a"].get("/backup/ignored/rule",e)}function Xa(e){return a["a"].get("/backup/option",e)}function er(e){return a["a"].putJson("/backup/ignored/rule",e)}function tr(e){return a["a"].get("/backup/db/list",e)}function nr(e){return a["a"].get("/backup/db/table/list",e)}function ar(e){return a["a"].get("/backup/ignored/summary",e)}function rr(e){return a["a"].get("/nginx/proxy/list",e)}function ir(e){return a["a"].post("/nginx/proxy",e)}function sr(e){return a["a"].delete("/nginx/proxy",e)}function or(e){return a["a"].post("/nginx/proxy/open",e)}function cr(e){return a["a"].post("/nginx/proxy/close",e)}function ur(e){return a["a"].get("/nginx/white/list",e)}function lr(e){return a["a"].get("/nginx/origin/ip",e)}function dr(e){return a["a"].post("/nginx/white/ip",e)}function fr(e){return a["a"].deleteJson("/nginx/white/ip",e)}function pr(e){return a["a"].post("/jumpserver/recreate",e)}function hr(e){return a["a"].post("/jumpserver/env/exist",e)}function mr(e,t){return a["a"].get("/registerCenter/local/publish",e,t)}},ed08:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n("e300");n("6efb"),n("fa03"),n("ef1f"),n("88a1"),n("d4b5"),n("2aa5"),n("7bf8"),n("dee9"),n("0d9f"),n("2618"),n("32f5"),n("fa8c");function r(e,t){if(0===arguments.length||!e)return null;var n,r=t||"{y}-{m}-{d} {h}:{i}:{s}";"object"===Object(a["a"])(e)?n=e:("string"===typeof e&&(e=/^[0-9]+$/.test(e)?parseInt(e):e.replace(new RegExp(/-/gm),"/")),"number"===typeof e&&10===e.toString().length&&(e*=1e3),n=new Date(e));var i={y:n.getFullYear(),m:n.getMonth()+1,d:n.getDate(),h:n.getHours(),i:n.getMinutes(),s:n.getSeconds(),a:n.getDay()},s=r.replace(/{([ymdhisa])+}/g,(function(e,t){var n=i[t];return"a"===t?["日","一","二","三","四","五","六"][n]:n.toString().padStart(2,"0")}));return s}},ede5:function(e,t,n){"use strict";n("530e")},edfd:function(e,t,n){},ee36:function(e,t,n){},ef73:function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-updateFail",use:"icon-updateFail-usage",viewBox:"0 0 257.834 143.372",content:'\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'});s.a.add(o);t["default"]=o},f2db:function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-accessControl",use:"icon-accessControl-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(o);t["default"]=o},f75a:function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-check",use:"icon-check-usage",viewBox:"0 0 1075 1024",content:''});s.a.add(o);t["default"]=o},f782:function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-dashboard",use:"icon-dashboard-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(o);t["default"]=o},f90a:function(e,t,n){},fe8d:function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-test",use:"icon-test-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(o);t["default"]=o},fea0:function(e,t,n){"use strict";n.r(t);var a=n("ce21"),r=n.n(a),i=n("e497"),s=n.n(i),o=new r.a({id:"icon-log",use:"icon-log-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(o);t["default"]=o},ff0f:function(e,t,n){"use strict";n("117c")}},[[0,"runtime","chunk-elementUI","chunk-libs"]]]);