| | |
| | | <template> |
| | | <div class="systemMonitoring_box"> |
| | | <My-bread |
| | | :list="[ |
| | | <My-bread :list="[ |
| | | `${$t('operatManage.operatManage')}`, |
| | | `${$t('operatManage.systemMonitoring')}`, |
| | | ]" |
| | | ></My-bread> |
| | | ]"></My-bread> |
| | | <el-divider /> |
| | | <div class="content_Box"> |
| | | <div class="cloumn_Box1"> |
| | | <div class="flex_Box1 subpage_Div"> |
| | | <el-tabs v-model="activeName" @tab-click="handleClick"> |
| | | <el-tab-pane |
| | | :label="$t('operatManage.systemMonitoringObj.abnormalResources')" |
| | | name="first" |
| | | > |
| | | <el-tab-pane :label="$t('operatManage.systemMonitoringObj.abnormalResources')" name="first"> |
| | | <div class="table_b"> |
| | | <el-table :data="resInfo" style="width: 100%; height: 100%"> |
| | | <el-table-column |
| | | prop="id" |
| | | :label="$t('operatManage.systemMonitoringObj.resourceID')" |
| | | > |
| | | <el-table-column prop="id" :label="$t('operatManage.systemMonitoringObj.resourceID')"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="name" |
| | | :label="$t('operatManage.systemMonitoringObj.resourceName')" |
| | | > |
| | | <el-table-column prop="name" :label="$t('operatManage.systemMonitoringObj.resourceName')"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="bak" |
| | | :label=" |
| | | $t('operatManage.systemMonitoringObj.resourceState') |
| | | " |
| | | > |
| | | <el-table-column prop="bak" :label="$t('operatManage.systemMonitoringObj.resourceState') |
| | | "> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="createTime" |
| | | :label="$t('operatManage.systemMonitoringObj.abnormaltime')" |
| | | show-overflow-tooltip |
| | | > |
| | | <el-table-column prop="createTime" :label="$t('operatManage.systemMonitoringObj.abnormaltime')" |
| | | show-overflow-tooltip> |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | | </el-tab-pane> |
| | | <el-tab-pane |
| | | :label=" |
| | | $t('operatManage.systemMonitoringObj.serviceResourceStatus') |
| | | " |
| | | name="second" |
| | | > |
| | | <el-tab-pane :label="$t('operatManage.systemMonitoringObj.serviceResourceStatus') |
| | | " name="second"> |
| | | <div id="resUseChart" style="width: 101vh; height: 30vh"></div> |
| | | </el-tab-pane> |
| | | <el-tab-pane |
| | | :label="$t('operatManage.systemMonitoringObj.userloginStatus')" |
| | | name="third" |
| | | > |
| | | <el-tab-pane :label="$t('operatManage.systemMonitoringObj.userloginStatus')" name="third"> |
| | | <div id="userLoginChart" style="width: 101vh; height: 30vh"></div> |
| | | </el-tab-pane> |
| | | <el-tab-pane |
| | | :label=" |
| | | $t('operatManage.systemMonitoringObj.resourceOperationStatus') |
| | | " |
| | | name="fourth" |
| | | > |
| | | <div |
| | | id="operateCountChart" |
| | | style="width: 101vh; height: 30vh" |
| | | ></div> |
| | | <el-tab-pane :label="$t('operatManage.systemMonitoringObj.resourceOperationStatus') |
| | | " name="fourth"> |
| | | <div id="operateCountChart" style="width: 101vh; height: 30vh"></div> |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | | </div> |
| | |
| | | </div> |
| | | <div class="table_b"> |
| | | <el-table :data="tableData" style="width: 100%"> |
| | | <el-table-column |
| | | align="center" |
| | | type="index" |
| | | :label="$t('operatManage.ELM.index')" |
| | | width="100px" |
| | | /> |
| | | <el-table-column |
| | | prop="uid" |
| | | :label="$t('operatManage.systemMonitoringObj.userID')" |
| | | > |
| | | <el-table-column align="center" type="index" :label="$t('operatManage.ELM.index')" width="100px" /> |
| | | <el-table-column prop="uid" :label="$t('operatManage.systemMonitoringObj.userID')"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="uname" |
| | | :label="$t('operatManage.systemMonitoringObj.username')" |
| | | > |
| | | <el-table-column prop="uname" :label="$t('operatManage.systemMonitoringObj.username')"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="loginTime" |
| | | :label="$t('operatManage.systemMonitoringObj.onlineTime')" |
| | | fixed="right" |
| | | > |
| | | <el-table-column prop="loginTime" :label="$t('operatManage.systemMonitoringObj.onlineTime')" |
| | | fixed="right"> |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | |
| | | <label> |
| | | {{ |
| | | $t("operatManage.systemMonitoringObj.haveBeenUsed") |
| | | }}</label |
| | | > |
| | | }}</label> |
| | | <p>{{ memInfo.use }}</p> |
| | | </div> |
| | | <div class="height_title"> |
| | | <label> |
| | | {{ |
| | | $t("operatManage.systemMonitoringObj.usageRate") |
| | | }}</label |
| | | > |
| | | }}</label> |
| | | <p>{{ memInfo.usage }}</p> |
| | | </div> |
| | | </div> |
| | |
| | | <label> |
| | | {{ |
| | | $t("operatManage.systemMonitoringObj.totalMemory") |
| | | }}</label |
| | | > |
| | | }}</label> |
| | | <p>{{ memInfo.totalMem }}</p> |
| | | </div> |
| | | <div class="height_title"> |
| | | <label> |
| | | {{ |
| | | $t("operatManage.systemMonitoringObj.remainingMemory") |
| | | }}</label |
| | | > |
| | | }}</label> |
| | | <p>{{ memInfo.remainMem }}</p> |
| | | </div> |
| | | </div> |
| | |
| | | {{ $t("operatManage.systemMonitoringObj.cpuMonitoring") }} |
| | | </div> |
| | | </div> |
| | | <div |
| | | id="Sys_cpu_chart" |
| | | style="width: 100%; height: 86%; margin-top: 8%" |
| | | ></div> |
| | | <div id="Sys_cpu_chart" style="width: 100%; height: 86%; margin-top: 8%"></div> |
| | | </div> |
| | | <div class="flex_Box subpage_Div"> |
| | | <div style="width: 100%; height: 34px"> |
| | |
| | | }, |
| | | ], |
| | | }; |
| | | |
| | | let myChart1 = this.$echarts.init(document.getElementById("shuiwen")); |
| | | var dome = document.getElementById("shuiwen") |
| | | if (dome) { |
| | | let myChart1 = this.$echarts.init(dome); |
| | | myChart1.setOption(options); |
| | | window.addEventListener("resize", function () { |
| | | myChart1.resize(); |
| | | }); |
| | | } |
| | | |
| | | }, |
| | | lineChart3() { |
| | | var data = [ |
| | |
| | | ); |
| | | myChart4.setOption(option); |
| | | }, |
| | | isJSON(str) { |
| | | if (typeof str == 'string') { |
| | | try { |
| | | var obj = JSON.parse(str); |
| | | if (typeof obj == 'object' && obj) { |
| | | return true; |
| | | } else { |
| | | return false; |
| | | } |
| | | |
| | | } catch (e) { |
| | | |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | }, |
| | | created() { |
| | | if (Window.ws != null) { |
| | |
| | | var that = this; |
| | | Window.ws.onmessage = (msg) => { |
| | | // console.log('来自服务器端的数据:' + msg.data); //监听接受来自服务端的信息 |
| | | var obj = this.isJSON(msg.data); |
| | | if (obj) { |
| | | var data = JSON.parse(msg.data); |
| | | console.log(data); |
| | | if (data.userInfo != undefined) { |
| | | that.SetTableData1(data); |
| | | } else if (data.resInfo != undefined) { |
| | |
| | | } else if (data.operateCount != undefined) { |
| | | that.SetTableData3(data); |
| | | } |
| | | } |
| | | |
| | | }; |
| | | }, |
| | | |
| | |
| | | .table_b .el-table /deep/ .el-table__expanded-cell { |
| | | background-color: transparent !important; |
| | | } |
| | | |
| | | .table_b .el-table /deep/ th, |
| | | .table_b .el-table /deep/ tr { |
| | | background-color: transparent !important; |
| | | } |
| | | |
| | | .content_Box { |
| | | width: 100%; |
| | | height: 90%; |
| | |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: space-around; |
| | | |
| | | .cloumn_Box { |
| | | width: 100%; |
| | | height: 38%; |
| | | |
| | | display: flex; |
| | | justify-content: space-between; |
| | | |
| | | .flex_Box { |
| | | width: 30.5%; |
| | | height: 88%; |
| | |
| | | width: 46px; |
| | | height: 20px; |
| | | float: left; |
| | | background: url("../../assets/img/systemMonitoring/图层 38.png") |
| | | no-repeat; |
| | | background: url("../../assets/img/systemMonitoring/图层 38.png") no-repeat; |
| | | background-size: 100% 100%; |
| | | } |
| | | |
| | | .image2 { |
| | | width: 34px; |
| | | height: 34px; |
| | | float: left; |
| | | background: url("../../assets/img/systemMonitoring/图层 37.png") |
| | | no-repeat; |
| | | background: url("../../assets/img/systemMonitoring/图层 37.png") no-repeat; |
| | | background-size: 100% 100%; |
| | | } |
| | | |
| | | .image3 { |
| | | width: 32px; |
| | | height: 32px; |
| | | float: left; |
| | | background: url("../../assets/img/systemMonitoring/图层 40.png") |
| | | no-repeat; |
| | | background: url("../../assets/img/systemMonitoring/图层 40.png") no-repeat; |
| | | background-size: 100% 100%; |
| | | } |
| | | } |
| | | |
| | | .ycsBox { |
| | | width: 495px; |
| | | height: 182px; |
| | | background: url("../../assets/img/systemMonitoring/图层 39.png") |
| | | no-repeat; |
| | | background: url("../../assets/img/systemMonitoring/图层 39.png") no-repeat; |
| | | background-size: 100% 100%; |
| | | border: 1px; |
| | | display: flex; |
| | | align-items: center; |
| | | } |
| | | |
| | | .ycContent { |
| | | width: 100%; |
| | | padding: 1%; |
| | |
| | | justify-content: center; |
| | | } |
| | | } |
| | | |
| | | .imageTitle { |
| | | float: left; |
| | | |
| | | margin-left: 10px; |
| | | } |
| | | |
| | | .ycTltle { |
| | | width: 100%; |
| | | margin-top: 8%; |
| | |
| | | color: #009cff; |
| | | text-align: center; |
| | | } |
| | | |
| | | .heteroTitle { |
| | | width: 100%; |
| | | text-align: center; |
| | |
| | | |
| | | // text-align: center; |
| | | } |
| | | |
| | | .top_Box1 { |
| | | width: 96%; |
| | | height: 91%; |
| | |
| | | margin-left: 4%; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | |
| | | .top_box_left { |
| | | width: 59%; |
| | | height: 100%; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | |
| | | .left_title { |
| | | width: 48%; |
| | | height: 100%; |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: space-around; |
| | | |
| | | .height_title { |
| | | width: 100%; |
| | | height: 48%; |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | .top_box_right { |
| | | width: 39%; |
| | | height: 100%; |
| | |
| | | |
| | | display: flex; |
| | | justify-content: space-between; |
| | | |
| | | .flex_Box1 { |
| | | width: 64%; |
| | | height: 92%; |
| | |
| | | |
| | | border-radius: 5px; |
| | | } |
| | | |
| | | .flex_Box { |
| | | width: 30.5%; |
| | | height: 92%; |