CN-732 feat: dns下钻表格部分配置

This commit is contained in:
chenjinsong
2022-10-07 21:04:08 +08:00
parent 9e52841c55
commit 88027df120
8 changed files with 268 additions and 48 deletions

View File

@@ -30,14 +30,15 @@
@sort-change="((column) => {sortChange(column,tab.prop)})"
:key="index"
>
<template v-for="(item,index) in customTableTitles">
<template v-for="(item, index) in customTableTitles">
<el-table-column
v-if="item.checked"
sortable="custom"
:sortable="sortable(item)"
align="center"
:prop="item.prop"
class="data-column"
:ref="item.prop"
:key="index"
>
<template #header >
<span class="data-column__span" >{{$t(item.label)}}</span>
@@ -315,6 +316,10 @@ export default {
this.changeUrlTabState()
}
},
sortable (title) {
const excludeName = ['queriesFromIE']
return excludeName.indexOf(title.name) > -1 ? false : 'custom'
},
cancleSortArrow () {
// 取消表格排序高亮的箭头
if (this.column.prop) {
@@ -1144,13 +1149,10 @@ export default {
}
})
this.changeUrlTabState()
this.$router.push({
query: {
...this.$route.query,
thirdPanel: this.curTable.panelIdOfThirdMenu,
fourthPanel: toPanel,
time: +new Date()
}
this.jumpAndCache(this.$route.path, {
...this.$route.query,
thirdPanel: this.curTable.panelIdOfThirdMenu,
fourthPanel: toPanel
})
},
handleSearchParams (columnValue) {