fix: 部分点击触发功能样式调整,和 table 分页问题修复

This commit is contained in:
@changcode
2022-04-21 16:51:26 +08:00
parent 7894d329db
commit 4e48c5c652
5 changed files with 6 additions and 5 deletions

View File

@@ -73,6 +73,7 @@
}
}
.top-tool-btn {
cursor: pointer;
height: 33px;
width: 36px;
border: 1px solid $--border-color-primary;

View File

@@ -2,6 +2,7 @@
font-size: 14px;
border-radius: 2px;
display: flex;
cursor: pointer;
.date-range-refresh {
margin-left: 10px;

View File

@@ -80,6 +80,7 @@
i {
font-size: 12px;
color: #999;
cursor: pointer;
}
}
}

View File

@@ -400,9 +400,9 @@ export default {
const dateRangeValue = 60
const { startTime, endTime } = getNowTime(dateRangeValue)
const chartTimeFilter = ref({ startTime, endTime, dateRangeValue })
let table = {}
const table = ref({})
if (isBasicTable(props.chartInfo.type)) {
table = {
table.value = {
pageSize: chartTableDefaultPageSize,
limit: chartTableTopOptions[0], // top-n
orderBy: props.chartInfo.params.columns.order[0],

View File

@@ -285,9 +285,7 @@ export default {
// eventSeverityTrendOption.xAxis.data = dataMap.get('info').map(v => rTime(v[0]))
eventSeverityTrendOption.xAxis.data = xData
const detectionChart = echarts.init(chartDom)
window.addEventListener('resize', function () {
detectionChart.resize()
})
this.echartsResize(detectionChart)
detectionChart.setOption(eventSeverityTrendOption)
// this.isEventSeverityNoData = false
} else {