Files
starRiverProperty/frontend-source/decompiled/cwos-portal/static/js/223.326264c2a916424bb0cf.js
T
反编译工作区 4f79e10bd6 chore: cleanup stray nested directories in frontend-source
Former-commit-id: 376f94edd602d3dfed1cbada6e08361ee7b08e73
2026-04-29 13:07:40 +08:00

1 line
9.2 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
webpackJsonp([223],{QUAk:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=o("hOsK"),a=(o.n(l),o("kqC4")),i=(o.n(a),o("lv5w")),n=(o.n(i),o("2bj9")),r=(o.n(n),o("44wJ")),s=(o.n(r),o("6zSr")),c=(o.n(s),o("23M+")),v=o.n(c),u=o("DixE"),d=o.n(u),m=(o("oiss"),o("r6Af")),f=o("FCLc"),p=(o.n(f),o("cSe6")),_=(o.n(p),o("YO+z")),b=o.n(_),h=o("I3KW"),w=(o.n(h),o("g8nV"),o("Mnsi")),S=o.n(w),N=o("SBIS"),y=(o.n(N),o("Iy39")),g=(o.n(y),o("Ek6n")),k=(o.n(g),o("r7d2")),D=o("mtWM"),C=(o.n(D),o("zL8q")),I=(o.n(C),o("zCeI")),E=o("gPdZ"),F=o.n(E),x=Object(m.a)({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:[]},void 0,{name:"BaseInfo",components:{diskChart:function(){return o.e(238).then(o.bind(null,"9MPe"))}},props:{info:{type:Object,default:function(){return{}}}},data:function(){return{showMore:!1}},computed:{showData:function(){var t,e=this.info||{};return this.showMore?S()(t=[]).call(t,Object(I.a)(e.netcard),Object(I.a)(e.virtualNetcard)):e.netcard},chartArray:function(){return this.info.disk||[]}},methods:{groupBy:function(t,e){var o,l={};return d()(t).call(t,function(t){if(null!==t.total&&void 0!==t.total){t.value=t.total.split("GB")[0];var o=F()(t[e]);l[o]=l[o]||[],l[o].push(t)}}),b()(o=v()(l)).call(o,function(t){return l[t]})}}},"data-v-4a1f24b2",!1,void 0,!1,void 0,void 0,void 0),M=Object(m.a)({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:[]},void 0,{name:"InstallInfo",components:{},data:function(){return{showMore:!1,tableData:[],virtualNetcard:[]}},computed:{showData:function(){return this.tableData}},mounted:function(){var t=this;k.f.installInfo(this.$route.query.id).then(function(e){t.tableData=e})},methods:{}},"data-v-092e5f98",!1,void 0,!1,void 0,void 0,void 0),j=Object(m.a)({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._e():o("el-button",{attrs:{type:"text"},on:{click:t.editNum}},[t._v("新增")]),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?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:"修改设备序列号",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:[]},void 0,{name:"NodeDetail",components:{baseInfo:x,installInfo:M},data:function(){return{info:null,activeName:"first",isShowNum:!1,isShowEditDialog:!1,numForm:{deviceSN:""},nodeId:null,rules:{deviceSN:[{required:!0,message:"请输入设备序列号",trigger:"blur"}]}}},mounted:function(){this.fetchData()},methods:{fetchData:function(){var t=this;this.nodeId=this.$route.query.id,k.f.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.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};k.f.editDeviceNum(o).then(function(t){t.data&&(e.isShowEditDialog=!1,e.$message.success("设备序列号更改成功"),e.fetchData())}).catch(function(t){})})}}},"data-v-9633d280",!1,void 0,!1,void 0,void 0,void 0);e.default=j}});