Merge branch 'dev-2.0' of https://git.mesalab.cn/nezha/nezha-fronted into dev-2.0

This commit is contained in:
@changcode
2021-05-25 17:58:49 +08:00
18 changed files with 45 additions and 30 deletions

View File

@@ -229,6 +229,7 @@
height: 49px;
border-bottom: 1px solid $--right-box-border-color;
background-color: white;
box-sizing: content-box;
}
thead {
color: #333;

View File

@@ -643,7 +643,7 @@ export default {
this.modelStaticData(chartInfo, filterType)
} else {
// 没有数据的设置提示信息暂无数据-针对每一个图
const len = chartItem.elements.length
const len = chartItem.elements ? chartItem.elements.length : 0
if (len === 0) {
this.$nextTick(() => {
if (this.$refs['editChart' + chartItem.id] && this.$refs['editChart' + chartItem.id].length > 0) {
@@ -693,7 +693,6 @@ export default {
})
// 一个图表的所有element单独获取数据
axios.all(axiosArr).then((res) => {
if (res.length > 0) {
const series = []
let singleStatRlt = ''

View File

@@ -315,7 +315,6 @@ export default {
this.tempDom.width = span.offsetWidth
},
start (event) {
// console.log('start', event, this.dataList);
event.item.querySelector('.chartTitle').style.background = '#d8dce1'
const projectAndAssetFeatureInfos = event.item.querySelectorAll('.feature-content')
if (projectAndAssetFeatureInfos && projectAndAssetFeatureInfos.length > 0) {
@@ -611,9 +610,11 @@ export default {
return
}
if (param.from == fromRoute.chartTemp) { // 模板列表
if (this.panelDataList[0] && this.panelDataList[0].children) {
this.panelDataList[0].children.forEach((item1, i) => {
item1.chartIndex = i
})
}
this.dataList = this.panelDataList
this.$nextTick(() => {
this.dataList.forEach((item, index) => {

View File

@@ -357,7 +357,7 @@ export default {
.record-console {
padding: 10px 4px 10px 10px;
background-color: black;
height: calc(100% - 80px);
height: calc(100% - 65px);
}
.terminal-replay-progress {
height: 20px;

View File

@@ -14,6 +14,7 @@
@header-dragend="dragend"
@sort-change="tableDataSort"
@selection-change="selectionChange"
@row-dblclick="(row)=>{$emit('messageDetail', row)}"
>
<el-table-column
:resizable="false"
@@ -169,7 +170,7 @@ export default {
label: 'ID',
prop: 'id',
show: true,
width: 80,
width: 160,
sortable: 'custom'
}, {
label: this.$t('alert.rule'),

View File

@@ -4,10 +4,12 @@
ref="dataTable"
:data="tableData"
:height="height"
tooltip-effect="light"
border
@header-dragend="dragend"
@sort-change="tableDataSort"
@selection-change="selectionChange"
@row-dblclick="(row)=>{queryMessage(row)}"
>
<el-table-column
:resizable="false"
@@ -27,6 +29,7 @@
:sort-orders="['ascending', 'descending']"
:sortable="item.sortable"
:width="`${item.width}`"
:show-overflow-tooltip="item.prop === 'description'"
class="data-column"
>
<template slot="header">

View File

@@ -100,29 +100,33 @@ export default {
label: this.$t('config.assetLabel.name'),
prop: 'name',
show: true,
width: 100,
sortable: 'custom'
}, {
label: this.$t('config.assetLabel.key'),
prop: 'metaKey',
show: true,
width: 200,
sortable: 'custom'
}, {
label: this.$t('config.assetLabel.group'),
prop: 'group',
show: true,
width: 200,
sortable: 'custom'
}, {
label: this.$t('config.assetLabel.search'),
prop: 'search',
width: 120,
show: true
}, {
label: this.$t('config.assetLabel.display'),
prop: 'display',
width: 120,
show: true
}, {
label: this.$t('config.assetLabel.type'),
prop: 'type',
width: 150,
show: true
}, {
label: this.$t('config.assetLabel.params'),

View File

@@ -8,6 +8,7 @@
@header-dragend="dragend"
@sort-change="tableDataSort"
@selection-change="selectionChange"
@row-dblclick="(row)=>{$emit('showBottomBox', 'panelTab', row)}"
>
<el-table-column
:resizable="false"

View File

@@ -8,6 +8,7 @@
@header-dragend="dragend"
@sort-change="tableDataSort"
@selection-change="selectionChange"
@row-dblclick="(row)=>{showBottomBox('panel', row)}"
>
<el-table-column
:resizable="false"

View File

@@ -8,6 +8,7 @@
@header-dragend="dragend"
@sort-change="tableDataSort"
@selection-change="selectionChange"
@row-dblclick="(row)=>{$emit('showBottomBox', 'panelTab', row)}"
>
<el-table-column
:resizable="false"

View File

@@ -95,24 +95,24 @@ export default {
label: this.$t('config.model.name'),
prop: 'name',
show: true,
width: 450,
width: 350,
sortable: 'custom'
}, {
label: this.$t('config.model.brand'),
prop: 'brand',
show: true,
width: 160,
width: 200,
sortable: 'custom'
}, {
label: this.$t('config.model.assetNum'),
prop: 'assetNum',
show: true,
width: 120,
sortable: 'custom'
}, {
label: this.$t('config.model.remark'),
prop: 'remark',
show: true
}, {
label: this.$t('config.model.assetNum'),
prop: 'assetNum',
show: true,
width: 200,
sortable: 'custom'
}
]
}

View File

@@ -8,6 +8,7 @@
@header-dragend="dragend"
@sort-change="tableDataSort"
@selection-change="selectionChange"
@row-dblclick="(row)=>{showBottomBox('endpoint', row)}"
>
<el-table-column
:resizable="false"
@@ -104,31 +105,31 @@ export default {
label: this.$t('project.module.type'),
prop: 'type',
show: false,
width: 150
width: 200
}, {
label: this.$t('project.project.projectName'),
prop: 'project',
show: true,
width: 150,
width: 200,
sortable: 'custom'
},
{
label: this.$t('project.endpoint.endpoint'),
prop: 'endpointNum',
show: true,
width: 150,
width: 200,
sortable: 'custom'
}, {
label: this.$t('project.module.alerts'),
prop: 'alertNum',
show: true,
width: 150,
width: 200,
sortable: 'custom'
},
{
label: this.$t('overall.remark'),
prop: 'remark',
show: false,
show: true,
minWidth: 150
}
]

View File

@@ -9,6 +9,7 @@
@header-dragend="dragend"
@sort-change="tableDataSort"
@selection-change="selectionChange"
@row-dblclick="(row)=>{changeProjectTopo(row)}"
>
<el-table-column
:resizable="false"

View File

@@ -8,6 +8,7 @@
@header-dragend="dragend"
@sort-change="tableDataSort"
@selection-change="selectionChange"
@row-dblclick="(row)=>{showBottomBox(row.status==0 ? 'monitorTab' : 'cmdTab', row)}"
>
<el-table-column
:resizable="false"

View File

@@ -8,6 +8,7 @@
@header-dragend="dragend"
@sort-change="tableDataSort"
@selection-change="selectionChange"
@row-dblclick="(row)=>{showBottomBox('operationLogTab', row)}"
>
<el-table-column
:resizable="false"

View File

@@ -20,7 +20,6 @@ export default {
height: calc(100% - 50px);
background-color: #f6f6f6;
width: 100%;
padding-right: 10px;
&>div {
height: 100%;
}

View File

@@ -49,7 +49,7 @@ export default {
justify-content: center;
height: 100%;
background-color: white;
border: 10px solid #eee;
border: 10px solid #f6f6f6;
box-sizing: border-box;
.about-label {

View File

@@ -1,6 +1,6 @@
.overview {
height: calc(100% - 20px) !important;
padding: 0 0 0 10px;
padding: 0 10px;
background-color: #f6f6f6;
}
.overview-content-header{