mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-10 00:40:30 +08:00
0c56a3e599
Made-with: Cursor Former-commit-id: 571c9a99ee26d90505e550c287eb8ad8d743ff8d
1 line
9.9 KiB
JavaScript
1 line
9.9 KiB
JavaScript
webpackJsonp([13],{AVRl:function(t,e,o){(t.exports=o("FZ+f")(!1)).push([t.i,"\n.h-title[data-v-ac520942] {\n font-size: 14px;\n font-weight: bold;\n}\n.showMore[data-v-ac520942] {\n cursor: pointer;\n text-align: center;\n font-size: 14px;\n margin-top: 12px;\n}\n",""])},SOzd:function(t,e,o){var l=o("AVRl");"string"==typeof l&&(l=[[t.i,l,""]]),l.locals&&(t.exports=l.locals);o("rjj0")("acec1e5e",l,!0)},VAE2:function(t,e,o){var l=o("uU55");"string"==typeof l&&(l=[[t.i,l,""]]),l.locals&&(t.exports=l.locals);o("rjj0")("642f9922",l,!0)},dGkL:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=o("fZjL"),a=o.n(l),n=o("mvHQ"),i=o.n(n),r=o("Gu7T"),s=o.n(r),c={name:"BaseInfo",components:{diskChart:function(){return o.e(37).then(o.bind(null,"hMR7"))}},props:{info:{type:Object,default:function(){return{}}}},data:function(){return{showMore:!1}},computed:{showData:function(){var t=this.info||{};return this.showMore?[].concat(s()(t.netcard),s()(t.virtualNetcard)):t.netcard},chartArray:function(){return this.info.disk||[]}},methods:{groupBy:function(t,e){var o={};return t.forEach(function(t){if(null!==t.total&&void 0!==t.total){t.value=t.total.split("GB")[0];var l=i()(t[e]);o[l]=o[l]||[],o[l].push(t)}}),a()(o).map(function(t){return o[t]})}}},u={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("el-form",{attrs:{inline:""}},[o("div",{staticClass:"h-title"},[t._v("CPU信息")]),t._v(" "),o("el-form-item",{attrs:{label:"数量:"}},[t._v(t._s(t.info.cpu.count))]),t._v(" "),o("el-form-item",{attrs:{label:"型号:"}},[t._v(t._s(t.info.cpu.type))]),t._v(" "),o("el-form-item",{attrs:{label:"主频:"}},[t._v(t._s(t.info.cpu.freq))]),t._v(" "),o("el-form-item",{attrs:{label:"缓存:"}},[t._v(t._s(t.info.cpu.cache))]),t._v(" "),o("div",{staticClass:"h-title"},[t._v("内存信息")]),t._v(" "),o("el-form-item",{attrs:{label:"容量:"}},[t._v(t._s(t.info.mem.total))]),t._v(" "),o("el-form-item",{attrs:{label:"主频:"}},[t._v(t._s(t.info.mem.freq))]),t._v(" "),t.chartArray.length?o("div",{staticClass:"h-title"},[t._v("磁盘信息")]):t._e(),t._v(" "),o("diskChart",{attrs:{data:t.chartArray}}),t._v(" "),o("div",{staticClass:"h-title"},[t._v("文件系统信息")]),t._v(" "),o("el-table",{staticStyle:{margin:"12px 0"},attrs:{data:t.info.fileSystem}},[o("el-table-column",{attrs:{type:"index",label:"序号"}}),t._v(" "),o("el-table-column",{attrs:{prop:"mntPoint","show-overflow-tooltip":"",label:"挂载点"}}),t._v(" "),o("el-table-column",{attrs:{prop:"disk","show-overflow-tooltip":"",label:"所属磁盘"}}),t._v(" "),o("el-table-column",{attrs:{prop:"total",label:"分配空间"}}),t._v(" "),o("el-table-column",{attrs:{prop:"available",label:"可用空间"}}),t._v(" "),o("el-table-column",{attrs:{prop:"type",label:"类型"}}),t._v(" "),o("el-table-column",{attrs:{prop:"mntArgs",label:"挂载参数"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s((e.row.mntArgs||[]).join(","))+"\n ")]}}])})],1),t._v(" "),o("div",{staticClass:"h-title"},[t._v("GPU信息")]),t._v(" "),o("el-table",{staticStyle:{margin:"12px 0"},attrs:{data:t.info.gpu}},[o("el-table-column",{attrs:{type:"index",label:"序号"}}),t._v(" "),o("el-table-column",{attrs:{prop:"type",label:"GPU卡型号"}}),t._v(" "),o("el-table-column",{attrs:{prop:"version",label:"驱动版本"}})],1),t._v(" "),o("div",{staticClass:"h-title"},[t._v("网卡信息")]),t._v(" "),o("el-table",{staticStyle:{margin:"12px 0"},attrs:{data:t.showData}},[o("el-table-column",{attrs:{type:"index",label:"序号"}}),t._v(" "),o("el-table-column",{attrs:{prop:"alias",label:"alias","show-overflow-tooltip":""}}),t._v(" "),o("el-table-column",{attrs:{prop:"broadcast",label:"broadcast","show-overflow-tooltip":""}}),t._v(" "),o("el-table-column",{attrs:{prop:"gateway","show-overflow-tooltip":"",label:"gateway"}}),t._v(" "),o("el-table-column",{attrs:{prop:"address","show-overflow-tooltip":"",label:"address"}}),t._v(" "),o("el-table-column",{attrs:{prop:"interfaceName","show-overflow-tooltip":"",label:"interface"}}),t._v(" "),o("el-table-column",{attrs:{prop:"macAddress",label:"macAddress","show-overflow-tooltip":""}}),t._v(" "),o("el-table-column",{attrs:{prop:"mtu",label:"mtu","show-overflow-tooltip":""}}),t._v(" "),o("el-table-column",{attrs:{prop:"netmask",label:"netmask","show-overflow-tooltip":""}}),t._v(" "),o("el-table-column",{attrs:{prop:"network",label:"network","show-overflow-tooltip":""}}),t._v(" "),o("el-table-column",{attrs:{prop:"type",label:"type","show-overflow-tooltip":""}})],1),t._v(" "),o("div",{staticClass:"showMore",on:{click:function(e){t.showMore=!t.showMore}}},[o("i",{class:t.showMore?"el-icon-arrow-up":"el-icon-arrow-down"}),t._v(t._s(t.showMore?"收起":"展开")+" ")])],1)},staticRenderFns:[]};var v=o("VU/8")(c,u,!1,function(t){o("SOzd")},"data-v-ac520942",null).exports,f=o("YwUV"),m={name:"InstallInfo",components:{},data:function(){return{showMore:!1,tableData:[],virtualNetcard:[]}},computed:{showData:function(){return this.tableData}},mounted:function(){var t=this;f.d.installInfo(this.$route.query.id).then(function(e){t.tableData=e})},methods:{}},d={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("el-table",{attrs:{data:this.showData}},[e("el-table-column",{attrs:{prop:"softName",label:"软件名称","show-overflow-tooltip":""}}),this._v(" "),e("el-table-column",{attrs:{prop:"softVersion",label:"版本","show-overflow-tooltip":""}}),this._v(" "),e("el-table-column",{attrs:{prop:"roleName","show-overflow-tooltip":"",label:"角色实例"}}),this._v(" "),e("el-table-column",{attrs:{prop:"desc","show-overflow-tooltip":"",label:"描述"}}),this._v(" "),e("el-table-column",{attrs:{prop:"path","show-overflow-tooltip":"",label:"路径"}})],1)],1)},staticRenderFns:[]};var p={name:"NodeDetail",components:{baseInfo:v,installInfo:o("VU/8")(m,d,!1,function(t){o("VAE2")},"data-v-70f0d850",null).exports},data:function(){return{info:null,activeName:"first",isShowNum:!1,isShowEditDialog:!1,numForm:{deviceSN:""},nodeId:null,rules:{deviceSN:[{required:!0,message:"请输入设备序列号",trigger:"blur"}]},title:""}},mounted:function(){this.fetchData()},methods:{fetchData:function(){var t=this;this.nodeId=this.$route.query.id,f.d.detail(this.nodeId).then(function(e){t.info=e,t.numForm.deviceSN=t.info.deviceSn})},showNum:function(){this.isShowNum=!0},hiddenNum:function(){this.isShowNum=!1},editNum:function(){this.numForm.deviceSN?this.title="修改设备序列号":this.title="新增设备序列号",this.isShowEditDialog=!0},closeEditDialog:function(t){this.isShowEditDialog=!1,this.$refs[t].clearValidate(),this.$refs[t].resetFields()},handleConfirmEdit:function(t){var e=this;this.$refs[t].validate(function(t){if(!t)return!1;var o={deviceSn:e.numForm.deviceSN,nodeId:e.nodeId};f.d.editDeviceNum(o).then(function(t){t.data&&(e.isShowEditDialog=!1,e.$message.success("设备序列号更改成功"),e.fetchData())}).catch(function(t){})})}}},h={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"app-container"},[o("el-card",[t.info?o("el-form",{attrs:{inline:""}},[o("el-form-item",{attrs:{label:"节点名称:"}},[t._v(t._s(t.info.nodeName))]),t._v(" "),o("br"),t._v(" "),o("el-form-item",{attrs:{label:"IP地址:"}},[t._v(t._s(t.info.ipv4))]),t._v(" "),o("br"),t._v(" "),o("el-form-item",{attrs:{label:"节点DNS:"}},[t._v(t._s((t.info.dns||[]).join(",")))]),t._v(" "),o("br"),t._v(" "),o("el-form-item",{attrs:{label:"操作系统:"}},[t._v(t._s(t.info.osType))]),t._v(" "),o("br"),t._v(" "),o("el-form-item",{attrs:{label:"设备序列号:"}},[!t.info.deviceSn&&t.$hasPermission([t.$ecoAuth.nodeAddSerialNum])?o("el-button",{attrs:{type:"text"},on:{click:t.editNum}},[t._v("新增")]):t._e(),t._v(" "),t.info.deviceSn?o("span",[t.isShowNum?o("span",[t._v(t._s(t.info.deviceSn))]):t._e(),t._v(" "),t.isShowNum?t._e():o("el-button",{attrs:{type:"text"},on:{click:t.showNum}},[t._v("查看")]),t._v(" "),t.isShowNum?o("span",[o("el-button",{attrs:{type:"text"},on:{click:t.hiddenNum}},[t._v("收起")]),t._v(" "),t.info.editable&&t.$hasPermission([t.$ecoAuth.nodeChangeSerialNum])?o("el-button",{attrs:{type:"text"},on:{click:t.editNum}},[t._v("修改")]):t._e()],1):t._e()],1):t._e()],1),t._v(" "),o("br"),t._v(" "),o("el-form-item",{attrs:{label:"节点状态:"}},[t._v(t._s(t.info.currentStateText))])],1):t._e(),t._v(" "),o("el-dialog",{staticStyle:{"margin-top":"5%"},attrs:{visible:t.isShowEditDialog,"show-close":!1,title:t.title,width:"30%"},on:{"update:visible":function(e){t.isShowEditDialog=e}}},[o("el-form",{ref:"numForm",attrs:{model:t.numForm,rules:t.rules}},[o("el-form-item"),t._v(" "),o("el-form-item",{attrs:{prop:"deviceSN"}},[o("el-input",{staticClass:"input",attrs:{placeholder:"请输入设备序列号"},model:{value:t.numForm.deviceSN,callback:function(e){t.$set(t.numForm,"deviceSN",e)},expression:"numForm.deviceSN"}})],1)],1),t._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{attrs:{type:"warning"},on:{click:function(e){return t.handleConfirmEdit("numForm")}}},[t._v("确 定")]),t._v(" "),o("el-button",{on:{click:function(e){return t.closeEditDialog("numForm")}}},[t._v("取 消")])],1)],1),t._v(" "),o("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[o("el-tab-pane",{attrs:{label:"基础信息",name:"first"}},[t.info?o("baseInfo",{attrs:{info:t.info}}):t._e()],1),t._v(" "),o("el-tab-pane",{attrs:{label:"安装信息",name:"second"}},[o("installInfo")],1)],1)],1)],1)},staticRenderFns:[]};var _=o("VU/8")(p,h,!1,function(t){o("t8g+")},"data-v-2abc54e0",null);e.default=_.exports},"r+2T":function(t,e,o){(t.exports=o("FZ+f")(!1)).push([t.i,"\n[data-v-2abc54e0] .el-form--inline .el-form-item {\n margin-bottom: 0;\n}\n.input .el-input__inner[data-v-2abc54e0] {\n width: 500px;\n}\n",""])},"t8g+":function(t,e,o){var l=o("r+2T");"string"==typeof l&&(l=[[t.i,l,""]]),l.locals&&(t.exports=l.locals);o("rjj0")("49677a93",l,!0)},uU55:function(t,e,o){(t.exports=o("FZ+f")(!1)).push([t.i,"",""])}}); |