perf: 补上loading、统一table的滚动条尺寸
This commit is contained in:
@@ -2,3 +2,18 @@
|
|||||||
font-family: 'NotoSans'; /*字体名称*/
|
font-family: 'NotoSans'; /*字体名称*/
|
||||||
src: url('font/NotoSansSC-6.ttf');
|
src: url('font/NotoSansSC-6.ttf');
|
||||||
}
|
}
|
||||||
|
.el-loading-spinner .circular{
|
||||||
|
width: 42px;
|
||||||
|
height: 42px;
|
||||||
|
animation: loading-rotate 2s linear infinite;
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.el-loading-mask .el-loading-spinner{
|
||||||
|
background: url(../img/loading.gif) no-repeat;
|
||||||
|
background-size: 48px 48px;
|
||||||
|
width: 200px;
|
||||||
|
height: 200px;
|
||||||
|
position: relative;
|
||||||
|
top: 50%;
|
||||||
|
left: 48.5%;
|
||||||
|
}
|
||||||
|
|||||||
@@ -1777,3 +1777,4 @@ li{
|
|||||||
.transparent-pop{ //防止popover的提示框挡住页面元素无法操作
|
.transparent-pop{ //防止popover的提示框挡住页面元素无法操作
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1197,8 +1197,8 @@
|
|||||||
this.dropdownMenuShow=false;
|
this.dropdownMenuShow=false;
|
||||||
this.clearChart();
|
this.clearChart();
|
||||||
this.$refs['localLoading'+this.chartIndex].startLoading();
|
this.$refs['localLoading'+this.chartIndex].startLoading();
|
||||||
this.firstShow = false;
|
/*this.firstShow = false;
|
||||||
this.$emit('on-refresh-data', this.data.id);
|
this.$emit('on-refresh-data', this.data.id);*/
|
||||||
},
|
},
|
||||||
initDialog(){
|
initDialog(){
|
||||||
//此时初始化,才能获得screenShowArea对象,否则此对象为undefined,无法初始化图表
|
//此时初始化,才能获得screenShowArea对象,否则此对象为undefined,无法初始化图表
|
||||||
|
|||||||
@@ -28,7 +28,6 @@
|
|||||||
<el-table
|
<el-table
|
||||||
class="nz-table"
|
class="nz-table"
|
||||||
:data="tableData"
|
:data="tableData"
|
||||||
element-loading-background="rgba(0, 0, 0, 0)"
|
|
||||||
border
|
border
|
||||||
v-loading="loading"
|
v-loading="loading"
|
||||||
ref="alertMessageSubList"
|
ref="alertMessageSubList"
|
||||||
@@ -399,8 +398,8 @@
|
|||||||
this.$set(this.searchLabel, "pageNo", this.pageObj.pageNo);
|
this.$set(this.searchLabel, "pageNo", this.pageObj.pageNo);
|
||||||
this.$set(this.searchLabel, "pageSize", this.pageObj.pageSize);
|
this.$set(this.searchLabel, "pageSize", this.pageObj.pageSize);
|
||||||
this.$get('alert/message', this.searchLabel).then(response => {
|
this.$get('alert/message', this.searchLabel).then(response => {
|
||||||
|
this.loading = false;
|
||||||
if (response.code == 200) {
|
if (response.code == 200) {
|
||||||
this.loading = false;
|
|
||||||
this.tableData = response.data.list;
|
this.tableData = response.data.list;
|
||||||
this.tableData.forEach((item) => {
|
this.tableData.forEach((item) => {
|
||||||
item.labels = JSON.parse(item.labels);
|
item.labels = JSON.parse(item.labels);
|
||||||
|
|||||||
@@ -187,8 +187,8 @@
|
|||||||
this.$set(this.searchLabel, "pageNo", 1);
|
this.$set(this.searchLabel, "pageNo", 1);
|
||||||
this.$set(this.searchLabel, "pageSize", -1);
|
this.$set(this.searchLabel, "pageSize", -1);
|
||||||
this.$get("/cabinet", this.searchLabel).then(response => {
|
this.$get("/cabinet", this.searchLabel).then(response => {
|
||||||
|
this.loading = false;
|
||||||
if (response.code == 200) {
|
if (response.code == 200) {
|
||||||
this.loading = false;
|
|
||||||
this.tableData = response.data.list;
|
this.tableData = response.data.list;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="margin-r-20 nz-btn-group nz-btn-group-size-small nz-btn-group-light">
|
<div class="margin-r-20 nz-btn-group nz-btn-group-size-small nz-btn-group-light">
|
||||||
<button @click="changeTime(-10)" class="nz-btn nz-btn-size-normal nz-btn-style-light change-time-height nz-input-group-prepend"><i class="el-icon-d-arrow-left"></i></button><el-date-picker
|
<button @click="changeTime(-10)" class="nz-btn nz-btn-size-normal nz-btn-style-light change-time-height nz-input-group-prepend"><i class="el-icon-d-arrow-left"></i></button><el-date-picker
|
||||||
v-model="formatTime"loading
|
v-model="formatTime"
|
||||||
type="datetime"
|
type="datetime"
|
||||||
size="mini"
|
size="mini"
|
||||||
class="project-calendar nz-input-group-middle"
|
class="project-calendar nz-input-group-middle"
|
||||||
@@ -51,11 +51,10 @@
|
|||||||
<div class="table-header-inner" @click="clearSelectedMetrics"><span><i style="font-size: 12px;margin-left: 2px;" class="nz-icon nz-icon-close " :class="{'control-icon-unchecked':selectedEndpoints.length<1,'control-icon-checked':selectedEndpoints.length>0}"></i></span></div>
|
<div class="table-header-inner" @click="clearSelectedMetrics"><span><i style="font-size: 12px;margin-left: 2px;" class="nz-icon nz-icon-close " :class="{'control-icon-unchecked':selectedEndpoints.length<1,'control-icon-checked':selectedEndpoints.length>0}"></i></span></div>
|
||||||
<el-table
|
<el-table
|
||||||
:data="tableData"
|
:data="tableData"
|
||||||
v-loading="loading"
|
|
||||||
element-loading-background="rgba(0, 0, 0, 0)"
|
|
||||||
border
|
border
|
||||||
v-scrollBar:el-table
|
v-scrollBar:el-table="'normal'"
|
||||||
class="nz-table endpoint-query-table"
|
class="nz-table endpoint-query-table"
|
||||||
|
v-loading="loading"
|
||||||
:header-cell-class-name="cellClass"
|
:header-cell-class-name="cellClass"
|
||||||
:height="$tableHeight.noPagination"
|
:height="$tableHeight.noPagination"
|
||||||
@selection-change="selectChange"
|
@selection-change="selectChange"
|
||||||
@@ -162,6 +161,7 @@
|
|||||||
data() {
|
data() {
|
||||||
let temp = this;
|
let temp = this;
|
||||||
return {
|
return {
|
||||||
|
loading: false,
|
||||||
showTopBtn: false, //主列表top按钮
|
showTopBtn: false, //主列表top按钮
|
||||||
currentEndpoint: {},
|
currentEndpoint: {},
|
||||||
queryData: [],//endpoint 查询列表数据
|
queryData: [],//endpoint 查询列表数据
|
||||||
@@ -176,7 +176,6 @@
|
|||||||
graphChart:null,//图标对象
|
graphChart:null,//图标对象
|
||||||
graphShow:false,
|
graphShow:false,
|
||||||
searchTime:[],
|
searchTime:[],
|
||||||
loading:false,
|
|
||||||
pickerOptions: {
|
pickerOptions: {
|
||||||
shortcuts: [
|
shortcuts: [
|
||||||
{
|
{
|
||||||
@@ -566,6 +565,7 @@
|
|||||||
this.tableData = [];
|
this.tableData = [];
|
||||||
this.tableDataCopy = '';
|
this.tableDataCopy = '';
|
||||||
this.$get("/prom/api/v1/query?query={endpoint='" + this.currentEndpoint.id + "'}&time=" + this.formatTime).then(response=>{
|
this.$get("/prom/api/v1/query?query={endpoint='" + this.currentEndpoint.id + "'}&time=" + this.formatTime).then(response=>{
|
||||||
|
this.loading = false;
|
||||||
if(response.status==="success"){
|
if(response.status==="success"){
|
||||||
let results = response.data.result;
|
let results = response.data.result;
|
||||||
this.queryData=JSON.parse(JSON.stringify(results));
|
this.queryData=JSON.parse(JSON.stringify(results));
|
||||||
@@ -634,7 +634,6 @@
|
|||||||
this.tableData.push(edpQueryData);
|
this.tableData.push(edpQueryData);
|
||||||
}
|
}
|
||||||
this.tableDataCopy = JSON.stringify(this.tableData);
|
this.tableDataCopy = JSON.stringify(this.tableData);
|
||||||
this.loading = false;
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -195,7 +195,9 @@
|
|||||||
this.$emit('changeTab', tab);
|
this.$emit('changeTab', tab);
|
||||||
},
|
},
|
||||||
getTableData() {
|
getTableData() {
|
||||||
|
this.loading = true;
|
||||||
this.$get('/endpoint?assetId=' + this.asset.id + 'pageSize=-1').then(response => {
|
this.$get('/endpoint?assetId=' + this.asset.id + 'pageSize=-1').then(response => {
|
||||||
|
this.loading = false;
|
||||||
if (response.code === 200) {
|
if (response.code === 200) {
|
||||||
this.tableData = response.data.list;
|
this.tableData = response.data.list;
|
||||||
this.$emit("reload");
|
this.$emit("reload");
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div v-show="showLoading" class="el-loading-mask" style="background-color: rgba(0, 0, 0, 0);">
|
<div v-show="showLoading" class="el-loading-mask" style="background-color: rgba(0, 0, 0, 0);">
|
||||||
<div class="el-loading-spinner">
|
<div class="el-loading-spinner">
|
||||||
<img width="42px" height="42px" src="../../assets/img/loading.gif"/>
|
<!--<img width="42px" height="42px" src="../../assets/img/loading.gif"/>
|
||||||
<p class="el-loading-text loading-font">loading</p>
|
<p class="el-loading-text loading-font">loading</p>-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -37,7 +37,8 @@
|
|||||||
ref="alertRuleTable"
|
ref="alertRuleTable"
|
||||||
tooltip-effect="light"
|
tooltip-effect="light"
|
||||||
:height="mainTableHeight"
|
:height="mainTableHeight"
|
||||||
v-scrollBar:el-table
|
v-scrollBar:el-table="'large'"
|
||||||
|
v-loading="loading"
|
||||||
:cell-class-name="messageStyle"
|
:cell-class-name="messageStyle"
|
||||||
style="width: 100%;">
|
style="width: 100%;">
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@@ -121,6 +122,7 @@
|
|||||||
data() {
|
data() {
|
||||||
vm = this;
|
vm = this;
|
||||||
return {
|
return {
|
||||||
|
loading: false,
|
||||||
/*二级列表相关*/
|
/*二级列表相关*/
|
||||||
ruleDetail: {},
|
ruleDetail: {},
|
||||||
targetTab: '', //展示二级列表中的哪个页签
|
targetTab: '', //展示二级列表中的哪个页签
|
||||||
@@ -363,7 +365,9 @@
|
|||||||
getTableData: function () {
|
getTableData: function () {
|
||||||
this.$set(this.searchLabel, "pageNo", this.pageObj.pageNo);
|
this.$set(this.searchLabel, "pageNo", this.pageObj.pageNo);
|
||||||
this.$set(this.searchLabel, "pageSize", this.pageObj.pageSize);
|
this.$set(this.searchLabel, "pageSize", this.pageObj.pageSize);
|
||||||
|
this.loading = true;
|
||||||
this.$get('alert/rule', this.searchLabel).then(response => {
|
this.$get('alert/rule', this.searchLabel).then(response => {
|
||||||
|
this.loading = false;
|
||||||
if (response.code == 200) {
|
if (response.code == 200) {
|
||||||
this.tableData = response.data.list;
|
this.tableData = response.data.list;
|
||||||
this.pageObj.total = response.data.total;
|
this.pageObj.total = response.data.total;
|
||||||
|
|||||||
@@ -42,7 +42,8 @@
|
|||||||
ref="alertListTable"
|
ref="alertListTable"
|
||||||
tooltip-effect="light"
|
tooltip-effect="light"
|
||||||
:height="mainTableHeight"
|
:height="mainTableHeight"
|
||||||
v-scrollBar:el-table
|
v-scrollBar:el-table="'large'"
|
||||||
|
v-loading="loading"
|
||||||
:cell-class-name="labelsClassName"
|
:cell-class-name="labelsClassName"
|
||||||
@selection-change="selectChange"
|
@selection-change="selectChange"
|
||||||
style="width: 100%;">
|
style="width: 100%;">
|
||||||
@@ -187,6 +188,7 @@
|
|||||||
data() {
|
data() {
|
||||||
vm = this;
|
vm = this;
|
||||||
return {
|
return {
|
||||||
|
loading: false,
|
||||||
/*二级列表相关*/
|
/*二级列表相关*/
|
||||||
tabList: [], //二级列表的标签
|
tabList: [], //二级列表的标签
|
||||||
tabDetailList: [], //多个详情
|
tabDetailList: [], //多个详情
|
||||||
@@ -392,7 +394,9 @@
|
|||||||
getAlertList: function () {
|
getAlertList: function () {
|
||||||
this.$set(this.searchLabel, "pageNo", this.pageObj.pageNo);
|
this.$set(this.searchLabel, "pageNo", this.pageObj.pageNo);
|
||||||
this.$set(this.searchLabel, "pageSize", this.pageObj.pageSize);
|
this.$set(this.searchLabel, "pageSize", this.pageObj.pageSize);
|
||||||
|
this.loading = true;
|
||||||
this.$get('alert/message', this.searchLabel).then(response => {
|
this.$get('alert/message', this.searchLabel).then(response => {
|
||||||
|
this.loading = false;
|
||||||
if (response.code == 200) {
|
if (response.code == 200) {
|
||||||
this.tableData = response.data.list;
|
this.tableData = response.data.list;
|
||||||
this.tableData.forEach((item) => {
|
this.tableData.forEach((item) => {
|
||||||
|
|||||||
@@ -115,9 +115,10 @@
|
|||||||
:height="mainTableHeight"
|
:height="mainTableHeight"
|
||||||
style="width: 100%;"
|
style="width: 100%;"
|
||||||
:data="tableData"
|
:data="tableData"
|
||||||
v-scrollBar:el-table
|
v-scrollBar:el-table="'large'"
|
||||||
v-show="mainResizeShow"
|
v-show="mainResizeShow"
|
||||||
border
|
border
|
||||||
|
v-loading="loading"
|
||||||
tooltip-effect="light"
|
tooltip-effect="light"
|
||||||
ref="assetTable"
|
ref="assetTable"
|
||||||
>
|
>
|
||||||
@@ -283,6 +284,7 @@
|
|||||||
data() {
|
data() {
|
||||||
vm = this;
|
vm = this;
|
||||||
return {
|
return {
|
||||||
|
loading: false,
|
||||||
/*二级页面相关*/
|
/*二级页面相关*/
|
||||||
assetDetail: [], //asset详情
|
assetDetail: [], //asset详情
|
||||||
alertMsgAsset: {}, //告警信息对应的asset对象
|
alertMsgAsset: {}, //告警信息对应的asset对象
|
||||||
@@ -630,7 +632,9 @@
|
|||||||
},
|
},
|
||||||
getAssetData(data, flushRightBoxDc) {
|
getAssetData(data, flushRightBoxDc) {
|
||||||
this.searchLabel = Object.assign(this.searchLabel, this.pageObj);
|
this.searchLabel = Object.assign(this.searchLabel, this.pageObj);
|
||||||
|
this.loading = true;
|
||||||
this.$get('asset', this.searchLabel).then(response => {
|
this.$get('asset', this.searchLabel).then(response => {
|
||||||
|
this.loading = false;
|
||||||
if (response.code === 200) {
|
if (response.code === 200) {
|
||||||
this.tableData = response.data.list;
|
this.tableData = response.data.list;
|
||||||
this.pageObj.total = response.data.total
|
this.pageObj.total = response.data.total
|
||||||
|
|||||||
@@ -57,7 +57,8 @@
|
|||||||
v-show="mainResizeShow"
|
v-show="mainResizeShow"
|
||||||
ref="accountTable"
|
ref="accountTable"
|
||||||
:height="mainTableHeight"
|
:height="mainTableHeight"
|
||||||
v-scrollBar:el-table
|
v-loading="loading"
|
||||||
|
v-scrollBar:el-table="'large'"
|
||||||
style="width: 100%;">
|
style="width: 100%;">
|
||||||
<el-table-column
|
<el-table-column
|
||||||
:resizable="false"
|
:resizable="false"
|
||||||
@@ -199,6 +200,7 @@
|
|||||||
data() {
|
data() {
|
||||||
vm = this;
|
vm = this;
|
||||||
return {
|
return {
|
||||||
|
loading: false,
|
||||||
//底部上滑框相关
|
//底部上滑框相关
|
||||||
mainListHeight: '', //主列表高度
|
mainListHeight: '', //主列表高度
|
||||||
mainTableHeight: this.$tableHeight.normal, //主列表table高度
|
mainTableHeight: this.$tableHeight.normal, //主列表table高度
|
||||||
@@ -419,7 +421,9 @@
|
|||||||
getTableData: function () {
|
getTableData: function () {
|
||||||
this.$set(this.searchLabel, "pageNo", this.pageObj.pageNo);
|
this.$set(this.searchLabel, "pageNo", this.pageObj.pageNo);
|
||||||
this.$set(this.searchLabel, "pageSize", this.pageObj.pageSize);
|
this.$set(this.searchLabel, "pageSize", this.pageObj.pageSize);
|
||||||
|
this.loading = true;
|
||||||
this.$get('sys/user/list', this.searchLabel).then(response => {
|
this.$get('sys/user/list', this.searchLabel).then(response => {
|
||||||
|
this.loading = false;
|
||||||
if (response.code === 200) {
|
if (response.code === 200) {
|
||||||
for (let i = 0; i < response.data.list.length; i++) {
|
for (let i = 0; i < response.data.list.length; i++) {
|
||||||
response.data.list[i].status = response.data.list[i].status + "";
|
response.data.list[i].status = response.data.list[i].status + "";
|
||||||
|
|||||||
@@ -56,9 +56,10 @@
|
|||||||
border
|
border
|
||||||
tooltip-effect="light"
|
tooltip-effect="light"
|
||||||
v-show="mainResizeShow"
|
v-show="mainResizeShow"
|
||||||
v-scrollBar:el-table
|
v-scrollBar:el-table="'large'"
|
||||||
:height="mainTableHeight"
|
:height="mainTableHeight"
|
||||||
ref="dcTable"
|
ref="dcTable"
|
||||||
|
v-loading="loading"
|
||||||
:cell-class-name="assetStatClassName"
|
:cell-class-name="assetStatClassName"
|
||||||
style="width: 100%;">
|
style="width: 100%;">
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@@ -160,6 +161,7 @@
|
|||||||
tableId: 'dcTable', //需要分页的table的id,用于记录每页数量
|
tableId: 'dcTable', //需要分页的table的id,用于记录每页数量
|
||||||
showTopBtn: false,
|
showTopBtn: false,
|
||||||
mainTableHeight: this.$tableHeight.normal, //主列表table高度
|
mainTableHeight: this.$tableHeight.normal, //主列表table高度
|
||||||
|
loading: false,
|
||||||
currentDc: {
|
currentDc: {
|
||||||
id: '',
|
id: '',
|
||||||
name: '',
|
name: '',
|
||||||
@@ -366,7 +368,9 @@
|
|||||||
getTableData: function () {
|
getTableData: function () {
|
||||||
this.$set(this.searchLabel, "pageNo", this.pageObj.pageNo);
|
this.$set(this.searchLabel, "pageNo", this.pageObj.pageNo);
|
||||||
this.$set(this.searchLabel, "pageSize", this.pageObj.pageSize);
|
this.$set(this.searchLabel, "pageSize", this.pageObj.pageSize);
|
||||||
|
this.loading = true;
|
||||||
this.$get('idc', this.searchLabel).then(response => {
|
this.$get('idc', this.searchLabel).then(response => {
|
||||||
|
this.loading = false;
|
||||||
if (response.code === 200) {
|
if (response.code === 200) {
|
||||||
this.tableData = response.data.list;
|
this.tableData = response.data.list;
|
||||||
this.pageObj.total = response.data.total
|
this.pageObj.total = response.data.total
|
||||||
|
|||||||
@@ -54,7 +54,7 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<el-table :data="tableData" border :height="$tableHeight.normal" style="width: 100%;" ref="mibTable" class="nz-table mib-table" v-scrollBar:el-table>
|
<el-table :data="tableData" border :height="$tableHeight.normal" style="width: 100%;" ref="mibTable" class="nz-table mib-table" v-scrollBar:el-table="'large'" v-loading="loading">
|
||||||
<el-table-column :resizable="false" v-for="(item, index) in tablelable" v-if="item.show" :width="item.width" :class-name="item.prop == 'modelsDetail'?'detail-column':''"
|
<el-table-column :resizable="false" v-for="(item, index) in tablelable" v-if="item.show" :width="item.width" :class-name="item.prop == 'modelsDetail'?'detail-column':''"
|
||||||
:key="`col-${index}`" :label="item.label">
|
:key="`col-${index}`" :label="item.label">
|
||||||
<template slot-scope="scope" :column="item">
|
<template slot-scope="scope" :column="item">
|
||||||
@@ -139,6 +139,7 @@
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
showTab: 'file', //file/browser
|
showTab: 'file', //file/browser
|
||||||
|
loading: false,
|
||||||
|
|
||||||
tableId: 'mibTable', //需要分页的table的id,用于记录每页数量
|
tableId: 'mibTable', //需要分页的table的id,用于记录每页数量
|
||||||
showTopBtn: false,
|
showTopBtn: false,
|
||||||
@@ -292,7 +293,9 @@
|
|||||||
this.tableData = [];
|
this.tableData = [];
|
||||||
this.$set(this.searchLabel, "pageNo", this.pageObj.pageNo);
|
this.$set(this.searchLabel, "pageNo", this.pageObj.pageNo);
|
||||||
this.$set(this.searchLabel, "pageSize", this.pageObj.pageSize);
|
this.$set(this.searchLabel, "pageSize", this.pageObj.pageSize);
|
||||||
|
this.loading = true;
|
||||||
this.$get('mib', this.searchLabel).then(response => {
|
this.$get('mib', this.searchLabel).then(response => {
|
||||||
|
this.loading = false;
|
||||||
if (response.code === 200) {
|
if (response.code === 200) {
|
||||||
this.tableData = response.data.list;
|
this.tableData = response.data.list;
|
||||||
this.pageObj.total = response.data.total
|
this.pageObj.total = response.data.total
|
||||||
|
|||||||
@@ -135,7 +135,7 @@
|
|||||||
<div class="mib-browser-left">
|
<div class="mib-browser-left">
|
||||||
<div class="mib-browser-tree-title">
|
<div class="mib-browser-tree-title">
|
||||||
<span>SNMP MIBs</span>
|
<span>SNMP MIBs</span>
|
||||||
<el-dropdown trigger="click" v-scrollBar:el-dropdown :hide-on-click="false" @command="selectModel">
|
<el-dropdown trigger="click" v-scrollBar:el-dropdown="'small'" :hide-on-click="false" @command="selectModel">
|
||||||
<span class="mib-browser-table-op">{{$t("config.model.model") + " "}}<i class="nz-icon nz-icon-funnel"></i></span>
|
<span class="mib-browser-table-op">{{$t("config.model.model") + " "}}<i class="nz-icon nz-icon-funnel"></i></span>
|
||||||
<el-dropdown-menu slot="dropdown" class="mib-browser-model-dropdown">
|
<el-dropdown-menu slot="dropdown" class="mib-browser-model-dropdown">
|
||||||
<el-dropdown-item :class="{'mib-browser-model-dropdown-item-active': walkParam.models.indexOf(item.id) > -1}" :command="item" v-for="item, index in modelData" :key="index">{{item.name}}</el-dropdown-item>
|
<el-dropdown-item :class="{'mib-browser-model-dropdown-item-active': walkParam.models.indexOf(item.id) > -1}" :command="item" v-for="item, index in modelData" :key="index">{{item.name}}</el-dropdown-item>
|
||||||
@@ -154,6 +154,7 @@
|
|||||||
check-on-click-node
|
check-on-click-node
|
||||||
check-strictly
|
check-strictly
|
||||||
@node-click="showDetail"
|
@node-click="showDetail"
|
||||||
|
v-loading="treeLoading"
|
||||||
>
|
>
|
||||||
<div slot-scope="{node, data}" class="walk-tree-item">
|
<div slot-scope="{node, data}" class="walk-tree-item">
|
||||||
<span v-if="!data.type"><i class="el-icon-reading"></i></span>
|
<span v-if="!data.type"><i class="el-icon-reading"></i></span>
|
||||||
@@ -268,6 +269,7 @@
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
loading: false,
|
loading: false,
|
||||||
|
treeLoading: false,
|
||||||
snmpSetFormVisible: false, //snmp set表单
|
snmpSetFormVisible: false, //snmp set表单
|
||||||
searchParam: {
|
searchParam: {
|
||||||
host: '',
|
host: '',
|
||||||
@@ -353,13 +355,18 @@
|
|||||||
|
|
||||||
/*获取tree的数据*/
|
/*获取tree的数据*/
|
||||||
getWalkData() {
|
getWalkData() {
|
||||||
|
this.treeLoading = true;
|
||||||
this.$get('mib/tree', {models: this.walkParam.models.join(",")}).then(response => {
|
this.$get('mib/tree', {models: this.walkParam.models.join(",")}).then(response => {
|
||||||
|
this.treeLoading = false;
|
||||||
if (response.code === 200) {
|
if (response.code === 200) {
|
||||||
let obj = JSON.parse(response.data);
|
let obj = JSON.parse(response.data);
|
||||||
this.walkData = [];
|
this.walkData = [];
|
||||||
for (let item in obj) {
|
for (let item in obj) {
|
||||||
this.walkData.push({name: item, subTree: obj[item]});
|
this.walkData.push({name: item, subTree: obj[item]});
|
||||||
}
|
}
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs.treeScrollbar.update();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -658,7 +665,7 @@
|
|||||||
height: 31%;
|
height: 31%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
.mib-browser-detail .el-scrollbar__wrap .el-scrollbar__view, .mib-browser-detail .el-scrollbar__wrap {
|
.el-scrollbar__wrap .el-scrollbar__view, .el-scrollbar__wrap, .el-tree {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
.tree-detail-resize {
|
.tree-detail-resize {
|
||||||
|
|||||||
@@ -45,7 +45,8 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<el-table :data="tableData" border :height="$tableHeight.normal" style="width: 100%;" ref="modelTable" class="nz-table" v-scrollBar:el-table :cell-class-name="assetStatClassName">
|
<el-table :data="tableData" border :height="$tableHeight.normal" style="width: 100%;" ref="modelTable" class="nz-table" v-scrollBar:el-table="'large'"
|
||||||
|
v-loading="loading" :cell-class-name="assetStatClassName">
|
||||||
<el-table-column :resizable="false" v-for="(item, index) in tablelable" v-if="item.show" :width="item.width"
|
<el-table-column :resizable="false" v-for="(item, index) in tablelable" v-if="item.show" :width="item.width"
|
||||||
:key="`col-${index}`" :label="item.label">
|
:key="`col-${index}`" :label="item.label">
|
||||||
<template slot-scope="scope" :column="item">
|
<template slot-scope="scope" :column="item">
|
||||||
@@ -119,6 +120,7 @@
|
|||||||
pageSize: 20,
|
pageSize: 20,
|
||||||
total: 0
|
total: 0
|
||||||
},
|
},
|
||||||
|
loading: false,
|
||||||
tableTitle: [
|
tableTitle: [
|
||||||
{
|
{
|
||||||
label: 'ID',
|
label: 'ID',
|
||||||
@@ -256,7 +258,9 @@
|
|||||||
this.$set(this.searchLabel, "pageNo", this.pageObj.pageNo);
|
this.$set(this.searchLabel, "pageNo", this.pageObj.pageNo);
|
||||||
this.$set(this.searchLabel, "pageSize", this.pageObj.pageSize);
|
this.$set(this.searchLabel, "pageSize", this.pageObj.pageSize);
|
||||||
this.$set(this.searchLabel, "stat", 1);
|
this.$set(this.searchLabel, "stat", 1);
|
||||||
|
this.loading = true;
|
||||||
this.$get('model', this.searchLabel).then(response => {
|
this.$get('model', this.searchLabel).then(response => {
|
||||||
|
this.loading = false;
|
||||||
if (response.code === 200) {
|
if (response.code === 200) {
|
||||||
this.tableData = response.data.list;
|
this.tableData = response.data.list;
|
||||||
this.pageObj.total = response.data.total
|
this.pageObj.total = response.data.total
|
||||||
|
|||||||
@@ -50,7 +50,8 @@
|
|||||||
border
|
border
|
||||||
ref="operationLogTable"
|
ref="operationLogTable"
|
||||||
:height="$tableHeight.normal"
|
:height="$tableHeight.normal"
|
||||||
v-scrollBar:el-table
|
v-loading="loading"
|
||||||
|
v-scrollBar:el-table="'large'"
|
||||||
style="width: 100%;">
|
style="width: 100%;">
|
||||||
<el-table-column
|
<el-table-column
|
||||||
:resizable="false"
|
:resizable="false"
|
||||||
@@ -96,6 +97,7 @@
|
|||||||
name: "oparetionlog",
|
name: "oparetionlog",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
loading: false,
|
||||||
tableId: 'operationLogTable', //需要分页的table的id,用于记录每页数量
|
tableId: 'operationLogTable', //需要分页的table的id,用于记录每页数量
|
||||||
showTopBtn: false,
|
showTopBtn: false,
|
||||||
rightBox: { //弹出框相关
|
rightBox: { //弹出框相关
|
||||||
@@ -244,7 +246,9 @@
|
|||||||
getTableData: function () {
|
getTableData: function () {
|
||||||
this.$set(this.searchLabel, "pageNo", this.pageObj.pageNo);
|
this.$set(this.searchLabel, "pageNo", this.pageObj.pageNo);
|
||||||
this.$set(this.searchLabel, "pageSize", this.pageObj.pageSize);
|
this.$set(this.searchLabel, "pageSize", this.pageObj.pageSize);
|
||||||
|
this.loading = true;
|
||||||
this.$get('sys/log/list', this.searchLabel).then(response => {
|
this.$get('sys/log/list', this.searchLabel).then(response => {
|
||||||
|
this.loading = false;
|
||||||
if (response.code === 200) {
|
if (response.code === 200) {
|
||||||
// for (let i = 0; i < response.data.list.length; i++) {
|
// for (let i = 0; i < response.data.list.length; i++) {
|
||||||
// response.data.list[i].status = response.data.list[i].status + "";
|
// response.data.list[i].status = response.data.list[i].status + "";
|
||||||
|
|||||||
@@ -58,7 +58,8 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>-->
|
</div>-->
|
||||||
<el-table :data="tableData" border v-show="mainResizeShow" :height="mainTableHeight" style="width: 100%;" ref="promTable" class="nz-table" v-scrollBar:el-table>
|
<el-table :data="tableData" border v-show="mainResizeShow" :height="mainTableHeight" style="width: 100%;"
|
||||||
|
v-loading="loading" ref="promTable" class="nz-table" v-scrollBar:el-table="'large'">
|
||||||
<el-table-column :resizable="false" v-for="(item, index) in tablelable" v-if="item.show" :width="item.width"
|
<el-table-column :resizable="false" v-for="(item, index) in tablelable" v-if="item.show" :width="item.width"
|
||||||
:key="`col-${index}`" :label="item.label">
|
:key="`col-${index}`" :label="item.label">
|
||||||
<template slot-scope="scope" :column="item">
|
<template slot-scope="scope" :column="item">
|
||||||
@@ -223,6 +224,7 @@
|
|||||||
isEdit: false, //false查看,true编辑
|
isEdit: false, //false查看,true编辑
|
||||||
title: ''
|
title: ''
|
||||||
},
|
},
|
||||||
|
loading: false,
|
||||||
promServer: {
|
promServer: {
|
||||||
id: '',
|
id: '',
|
||||||
host: '',
|
host: '',
|
||||||
@@ -584,7 +586,9 @@
|
|||||||
this.tableData = [];
|
this.tableData = [];
|
||||||
this.$set(this.searchLabel, "pageNo", this.pageObj.pageNo);
|
this.$set(this.searchLabel, "pageNo", this.pageObj.pageNo);
|
||||||
this.$set(this.searchLabel, "pageSize", this.pageObj.pageSize);
|
this.$set(this.searchLabel, "pageSize", this.pageObj.pageSize);
|
||||||
|
this.loading = true;
|
||||||
this.$get('promServer', this.searchLabel).then(response => {
|
this.$get('promServer', this.searchLabel).then(response => {
|
||||||
|
this.loading = false;
|
||||||
if (response.code === 200) {
|
if (response.code === 200) {
|
||||||
for (var i = 0; i < response.data.list.length; i++) {
|
for (var i = 0; i < response.data.list.length; i++) {
|
||||||
for (var j = 0; j < this.idcData.length; j++) {
|
for (var j = 0; j < this.idcData.length; j++) {
|
||||||
|
|||||||
@@ -50,7 +50,8 @@
|
|||||||
border
|
border
|
||||||
ref="terminalLogTable"
|
ref="terminalLogTable"
|
||||||
:height="$tableHeight.normal"
|
:height="$tableHeight.normal"
|
||||||
v-scrollBar:el-table
|
v-scrollBar:el-table="'large'"
|
||||||
|
v-loading="loading"
|
||||||
style="width: 100%;">
|
style="width: 100%;">
|
||||||
<el-table-column
|
<el-table-column
|
||||||
:resizable="false"
|
:resizable="false"
|
||||||
@@ -105,6 +106,7 @@
|
|||||||
name: "terminallog",
|
name: "terminallog",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
loading: false,
|
||||||
tableId: 'terminalLogTable', //需要分页的table的id,用于记录每页数量
|
tableId: 'terminalLogTable', //需要分页的table的id,用于记录每页数量
|
||||||
showTopBtn: false,
|
showTopBtn: false,
|
||||||
rightBox: { //弹出框相关
|
rightBox: { //弹出框相关
|
||||||
@@ -273,7 +275,9 @@
|
|||||||
getTableData: function () {
|
getTableData: function () {
|
||||||
this.$set(this.searchLabel, "pageNo", this.pageObj.pageNo);
|
this.$set(this.searchLabel, "pageNo", this.pageObj.pageNo);
|
||||||
this.$set(this.searchLabel, "pageSize", this.pageObj.pageSize);
|
this.$set(this.searchLabel, "pageSize", this.pageObj.pageSize);
|
||||||
|
this.loading = true;
|
||||||
this.$get('terminal/log', this.searchLabel).then(response => {
|
this.$get('terminal/log', this.searchLabel).then(response => {
|
||||||
|
this.loading = false;
|
||||||
if (response.code === 200) {
|
if (response.code === 200) {
|
||||||
for (let i = 0; i < response.data.list.length; i++) {
|
for (let i = 0; i < response.data.list.length; i++) {
|
||||||
response.data.list[i].status = response.data.list[i].status + "";
|
response.data.list[i].status = response.data.list[i].status + "";
|
||||||
|
|||||||
@@ -84,7 +84,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="table-list" id="tableList">
|
<div class="table-list" id="tableList">
|
||||||
<el-scrollbar style="height: 100%" ref="dashboardScrollbar">
|
<el-scrollbar class="el-scrollbar-large" style="height: 100%" ref="dashboardScrollbar">
|
||||||
<div class="box-content">
|
<div class="box-content">
|
||||||
<chart-list @on-edit-chart="editData" @on-refresh-time="refreshTime" @on-remove-chart="removeData"
|
<chart-list @on-edit-chart="editData" @on-refresh-time="refreshTime" @on-remove-chart="removeData"
|
||||||
ref="chartList"></chart-list>
|
ref="chartList"></chart-list>
|
||||||
|
|||||||
@@ -103,9 +103,10 @@
|
|||||||
border
|
border
|
||||||
class="nz-table endpoint-table"
|
class="nz-table endpoint-table"
|
||||||
:height="mainTableHeight"
|
:height="mainTableHeight"
|
||||||
v-scrollBar:el-table="'normal'"
|
v-scrollBar:el-table="'large'"
|
||||||
v-show="mainResizeShow"
|
v-show="mainResizeShow"
|
||||||
ref="endpointTable"
|
ref="endpointTable"
|
||||||
|
v-loading="loading"
|
||||||
style="width: 100%;">
|
style="width: 100%;">
|
||||||
<el-table-column
|
<el-table-column
|
||||||
:resizable="false"
|
:resizable="false"
|
||||||
@@ -204,6 +205,8 @@
|
|||||||
vm = this;
|
vm = this;
|
||||||
let temp = this;
|
let temp = this;
|
||||||
return {
|
return {
|
||||||
|
loading: false,
|
||||||
|
|
||||||
assetDetail: [], //asset详情
|
assetDetail: [], //asset详情
|
||||||
endpointDetail: [],
|
endpointDetail: [],
|
||||||
targetTab: '',
|
targetTab: '',
|
||||||
@@ -347,7 +350,9 @@
|
|||||||
this.endpointSearchLabel.moduleId = this.currentModule.id;
|
this.endpointSearchLabel.moduleId = this.currentModule.id;
|
||||||
this.$set(this.endpointSearchLabel, 'pageNo', this.endpointPageObj.pageNo);
|
this.$set(this.endpointSearchLabel, 'pageNo', this.endpointPageObj.pageNo);
|
||||||
this.$set(this.endpointSearchLabel, 'pageSize', this.endpointPageObj.pageSize);
|
this.$set(this.endpointSearchLabel, 'pageSize', this.endpointPageObj.pageSize);
|
||||||
|
this.loading = true;
|
||||||
this.$get('endpoint', this.endpointSearchLabel).then(response => {
|
this.$get('endpoint', this.endpointSearchLabel).then(response => {
|
||||||
|
this.loading = false;
|
||||||
if (response.code === 200) {
|
if (response.code === 200) {
|
||||||
for (let i = 0; i < response.data.list.length; i++) {
|
for (let i = 0; i < response.data.list.length; i++) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ export const scrollBar = {
|
|||||||
el = el.querySelector(".el-table__body-wrapper");
|
el = el.querySelector(".el-table__body-wrapper");
|
||||||
!el && console.warn("未发现className为el-table__body-wrapper的dom");
|
!el && console.warn("未发现className为el-table__body-wrapper的dom");
|
||||||
} else if (arg === "el-dropdown") {
|
} else if (arg === "el-dropdown") {
|
||||||
el = el.querySelector(".el-dropdown-menu");
|
el = document.querySelector(".el-dropdown-menu");
|
||||||
!el && console.warn("未发现className为el-dropdown-menu的dom");
|
!el && console.warn("未发现className为el-dropdown-menu的dom");
|
||||||
} else if (arg == "legend") {
|
} else if (arg == "legend") {
|
||||||
el = el.querySelector(".legend-container");
|
el = el.querySelector(".legend-container");
|
||||||
@@ -152,7 +152,7 @@ export const scrollBar = {
|
|||||||
el = el.querySelector(".el-table__body-wrapper");
|
el = el.querySelector(".el-table__body-wrapper");
|
||||||
!el && console.warn("未发现className为el-table__body-wrapper的dom");
|
!el && console.warn("未发现className为el-table__body-wrapper的dom");
|
||||||
} else if (arg === "el-dropdown") {
|
} else if (arg === "el-dropdown") {
|
||||||
el = el.querySelector(".el-dropdown-menu");
|
el = document.querySelector(".el-dropdown-menu");
|
||||||
!el && console.warn("未发现className为el-dropdown-menu的dom");
|
!el && console.warn("未发现className为el-dropdown-menu的dom");
|
||||||
}else if (arg === "xterm") {
|
}else if (arg === "xterm") {
|
||||||
el = el.querySelector(".xterm-viewport");
|
el = el.querySelector(".xterm-viewport");
|
||||||
|
|||||||
Reference in New Issue
Block a user