You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
24 KiB
2 lines
24 KiB
6 years ago
|
webpackJsonp([22],{1012:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(987),a=n.n(i);for(var s in i)"default"!==s&&function(t){n.d(e,t,function(){return i[t]})}(s);var r=n(1013),o=n(27)(a.a,r.a,!1,null,null,null);e.default=o.exports},1013:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"list-model"},[n("div",{staticClass:"table-box"},[n("table",[n("tr",[n("th",[n("span",[t._v(t._s(t.$t("编号")))])]),t._v(" "),n("th",[n("span",[t._v(t._s(t.$t("ip")))])]),t._v(" "),n("th",[n("span",[t._v(t._s(t.$t("进程pid")))])]),t._v(" "),n("th",[n("span",[t._v(t._s(t.$t("zk注册目录")))])]),t._v(" "),n("th",[n("span",[t._v(t._s(t.$t("cpuUsage")))])]),t._v(" "),n("th",[n("span",[t._v(t._s(t.$t("memoryUsage")))])]),t._v(" "),n("th",[n("span",[t._v(t._s(t.$t("创建时间")))])]),t._v(" "),n("th",[n("span",[t._v(t._s(t.$t("最后心跳时间")))])])]),t._v(" "),t._l(t.list,function(e,i){return n("tr",{key:i},[n("td",[n("span",[t._v(t._s(i+1))])]),t._v(" "),n("td",[n("span",[n("a",{staticClass:"links",attrs:{href:"javascript:"}},[t._v(t._s(e.host))])])]),t._v(" "),n("td",[n("span",[t._v(t._s(e.port))])]),t._v(" "),n("td",[n("span",[t._v(t._s(e.zkDirectory))])]),t._v(" "),n("td",[n("span",[t._v(t._s(t._rtResInfo(JSON.parse(e.resInfo).cpuUsage)))])]),t._v(" "),n("td",[n("span",[t._v(t._s(t._rtResInfo(JSON.parse(e.resInfo).memoryUsage)))])]),t._v(" "),n("td",[n("span",[t._v(t._s(t._f("formatDate")(e.createTime)))])]),t._v(" "),n("td",[n("span",[t._v(t._s(t._f("formatDate")(e.lastHeartbeatTime)))])])])})],2)])])},staticRenderFns:[]};e.a=i},1079:function(t,e,n){"use strict";e.__esModule=!0;var i=n(123),a=l(n(1012)),s=l(n(646)),r=l(n(663)),o=l(n(654)),u=l(n(650));function l(t){return t&&t.__esModule?t:{default:t}}e.default={name:"worker-index",data:function(){return{pageSize:10,pageNo:1,totalPage:null,searchVal:"",isLoading:!1,workerList:[]}},props:{},methods:Object.assign({},(0,i.mapActions)("security",["getProcessWorkerList"])),watch:{},created:function(){var t=this;this.isLoading=!0,this.getProcessWorkerList().then(function(e){t.workerList=e.data,t.isLoading=!1})},mounted:function(){},components:{mList:a.default,mListConstruction:u.default,mSpin:s.default,mNoData:r.default,mSecondaryMenu:o.default}}},1217:function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"main-layout-box"},[n("m-secondary-menu",{attrs:{type:"security"}}),t._v(" "),n("m-list-construction",{attrs:{title:t.$t("服务管理-Worker")}},[n("template",{slot:"content"},[t.workerList.length?[n("m-list",{attrs:{list:t.workerList}})]:t._e(),t._v(" "),t.workerList.length?t._e():[n("m-no-data")],t._v(" "),n("m-spin",{attrs:{"is-spin":t.isLoading}})],2)],2)],1)},staticRenderFns:[]};e.a=i},635:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1079),a=n.n(i);for(var s in i)"default"!==s&&function(t){n.d(e,t,function(){return i[t]})}(s);var r=n(1217),o=n(27)(a.a,r.a,!1,null,null,null);e.default=o.exports},639:function(t,e,n){"use strict";e.__esModule=!0,e.default={name:"spin",data:function(){return{}},props:{isSpin:{type:Boolean,default:!0},isLeft:{type:Boolean,default:!0}}}},640:function(t,e,n){"use strict";e.__esModule=!0,e.default={name:"list-construction",data:function(){return{}},props:{title:String}}},641:function(t,e,n){"use strict";e.__esModule=!0;var i,a=n(659),s=(i=a)&&i.__esModule?i:{default:i};e.default={name:"secondary-menu",data:function(){return{menuList:(0,s.default)(this.type),index:0,id:this.$route.params.id,isTogHide:!1}},props:{type:String,className:String},watch:{isTogHide:function(t){var e=$(".main-layout-box");t?e.addClass("toggle"):e.removeClass("toggle")}},methods:{_toggleSubMenu:function(t){t.isOpen=!t.isOpen},_toggleMenu:function(){this.isTogHide=!this.isTogHide}},mounted:function(){}}},643:function(t,e,n){"use strict";e.__esModule=!0,e.default={name:"no-data",props:{msg:String}}},645:function(t,e,n){var i;i=function(){"use strict
|
||
|
//# sourceMappingURL=22.de647a5.js.map
|