Merge branch 'dev-2.0' of https://git.mesalab.cn/nezha/nezha-fronted into dev-2.0
This commit is contained in:
@@ -229,6 +229,7 @@
|
||||
height: 49px;
|
||||
border-bottom: 1px solid $--right-box-border-color;
|
||||
background-color: white;
|
||||
box-sizing: content-box;
|
||||
}
|
||||
thead {
|
||||
color: #333;
|
||||
|
||||
@@ -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 = ''
|
||||
|
||||
@@ -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) { // 模板列表
|
||||
this.panelDataList[0].children.forEach((item1, i) => {
|
||||
item1.chartIndex = i
|
||||
})
|
||||
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) => {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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'),
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -95,34 +95,38 @@ export default {
|
||||
prop: 'id',
|
||||
show: true,
|
||||
width: 80,
|
||||
sortable:'custom'
|
||||
sortable: 'custom'
|
||||
}, {
|
||||
label: this.$t('config.assetLabel.name'),
|
||||
prop: 'name',
|
||||
show: true,
|
||||
width: 100,
|
||||
sortable:'custom'
|
||||
sortable: 'custom'
|
||||
}, {
|
||||
label: this.$t('config.assetLabel.key'),
|
||||
prop: 'metaKey',
|
||||
show: true,
|
||||
sortable:'custom'
|
||||
width: 200,
|
||||
sortable: 'custom'
|
||||
}, {
|
||||
label: this.$t('config.assetLabel.group'),
|
||||
prop: 'group',
|
||||
show: true,
|
||||
sortable:'custom'
|
||||
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'),
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
@header-dragend="dragend"
|
||||
@sort-change="tableDataSort"
|
||||
@selection-change="selectionChange"
|
||||
@row-dblclick="(row)=>{showBottomBox('panel', row)}"
|
||||
>
|
||||
<el-table-column
|
||||
:resizable="false"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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'
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
@header-dragend="dragend"
|
||||
@sort-change="tableDataSort"
|
||||
@selection-change="selectionChange"
|
||||
@row-dblclick="(row)=>{changeProjectTopo(row)}"
|
||||
>
|
||||
<el-table-column
|
||||
:resizable="false"
|
||||
@@ -67,7 +68,7 @@
|
||||
fixed="right">
|
||||
<div slot="header" class="table-operation-title">{{$t('overall.option')}}</div>
|
||||
<div slot-scope="scope" class="table-operation-items">
|
||||
<button class="table-operation-item" @click="changeProjectTopo( scope.row)"><i class="nz-icon nz-icon-view1"></i></button>
|
||||
<button class="table-operation-item" @click="changeProjectTopo(scope.row)"><i class="nz-icon nz-icon-view1"></i></button>
|
||||
<el-dropdown size="medium" v-has="['project_edit','project_delete']" trigger="hover" @command="tableOperation">
|
||||
<div class="table-operation-item table-operation-item--more">
|
||||
<span>…</span><i class="nz-icon nz-icon-arrow-down"></i>
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
@header-dragend="dragend"
|
||||
@sort-change="tableDataSort"
|
||||
@selection-change="selectionChange"
|
||||
@row-dblclick="(row)=>{showBottomBox('operationLogTab', row)}"
|
||||
>
|
||||
<el-table-column
|
||||
:resizable="false"
|
||||
|
||||
@@ -20,7 +20,6 @@ export default {
|
||||
height: calc(100% - 50px);
|
||||
background-color: #f6f6f6;
|
||||
width: 100%;
|
||||
padding-right: 10px;
|
||||
&>div {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
.overview {
|
||||
height: calc(100% - 20px) !important;
|
||||
padding: 0 0 0 10px;
|
||||
padding: 0 10px;
|
||||
background-color: #f6f6f6;
|
||||
}
|
||||
.overview-content-header{
|
||||
|
||||
Reference in New Issue
Block a user