NEZ-2329 fix:修复底部列表插件缺失 tableId参数
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
<nz-bottom-data-list
|
||||
:showTitle='showTitle'
|
||||
:obj='obj'
|
||||
:tableId="tableId"
|
||||
:targetTab.sync="targetTab"
|
||||
:api="url"
|
||||
style="height: 100%"
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
<nz-bottom-data-list
|
||||
:showTitle='showTitle'
|
||||
:obj='obj'
|
||||
:tableId="tableId"
|
||||
:api="url"
|
||||
:custom-table-title.sync="tools.customTableTitle"
|
||||
:layout="['searchInput', 'elementSet']"
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
<nz-bottom-data-list
|
||||
:showTitle='showTitle'
|
||||
:obj='obj'
|
||||
:tableId="tableId"
|
||||
:api="url"
|
||||
:custom-table-title.sync="tools.customTableTitle"
|
||||
:layout="['elementSet']"
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
<nz-bottom-data-list
|
||||
:showTitle='showTitle'
|
||||
:obj='obj'
|
||||
:tableId="tableId"
|
||||
:api="url"
|
||||
:targetTab="targetTab"
|
||||
style="height: 100%"
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
:custom-table-title.sync="tools.customTableTitle"
|
||||
:layout="['searchInput', 'elementSet']"
|
||||
:search-msg="searchMsg"
|
||||
:tableId="tableId"
|
||||
:tabs="tabs"
|
||||
@search="search"
|
||||
@changeTab="changeTab"
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
:showTitle='showTitle'
|
||||
:obj='obj'
|
||||
:api="url"
|
||||
:tableId="tableId"
|
||||
:targetTab="targetTab"
|
||||
style="height: 100%"
|
||||
:custom-table-title.sync="tools.customTableTitle"
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
<nz-bottom-data-list
|
||||
:showTitle='showTitle'
|
||||
:obj='obj'
|
||||
:tableId="tableId"
|
||||
id="commentBottomTab"
|
||||
:api="url"
|
||||
:custom-table-title.sync="tools.customTableTitle"
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
:showTitle='showTitle'
|
||||
:obj='obj'
|
||||
:api="url"
|
||||
:tableId="tableId"
|
||||
:layout="['searchInput', 'elementSet']"
|
||||
:search-msg="searchMsg"
|
||||
:tabs="tabs"
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
:showTitle='showTitle'
|
||||
:obj='obj'
|
||||
:api="url"
|
||||
:tableId="tableId"
|
||||
:custom-table-title.sync="tools.customTableTitle"
|
||||
:layout="['searchInput', 'elementSet']"
|
||||
:search-msg="searchMsg"
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
:showTitle='showTitle'
|
||||
:obj='obj'
|
||||
id="logBottomTab"
|
||||
:tableId="tableId"
|
||||
:custom-tool="true"
|
||||
:layout="[]"
|
||||
:show-pagination="false"
|
||||
@@ -61,6 +62,7 @@ export default {
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
tableId: 'logBottomTab',
|
||||
logData: null,
|
||||
filterTime: [
|
||||
bus.timeFormate(bus.getOffsetTimezoneData(-1)),
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
<nz-bottom-data-list
|
||||
:showTitle='showTitle'
|
||||
:obj='obj'
|
||||
:tableId="tableId"
|
||||
id="networkBottomTab"
|
||||
:api="url"
|
||||
:custom-table-title.sync="tools.customTableTitle"
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
:showTitle='showTitle'
|
||||
:obj='obj'
|
||||
:api="url"
|
||||
:tableId="tableId"
|
||||
:custom-table-title.sync="tools.customTableTitle"
|
||||
:layout="['searchInput', 'elementSet']"
|
||||
:search-msg="searchMsg"
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
<nz-bottom-data-list
|
||||
:showTitle='showTitle'
|
||||
:obj='obj'
|
||||
:tableId="tableId"
|
||||
:layout="[]"
|
||||
:tabs="tabs"
|
||||
:targetTab="targetTab"
|
||||
@@ -188,6 +189,7 @@ export default {
|
||||
data () {
|
||||
return {
|
||||
fromRoute,
|
||||
tableId: 'panelTabNew',
|
||||
pdfId: 'pdfDom',
|
||||
htmlTitle: 'panel',
|
||||
panelTabLoading: false,
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
<nz-bottom-data-list
|
||||
:showTitle='showTitle'
|
||||
:obj='obj'
|
||||
:tableId="tableId"
|
||||
id="processBottomTab"
|
||||
:api="url"
|
||||
:custom-table-title.sync="tools.customTableTitle"
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
<nz-bottom-data-list
|
||||
:showTitle='showTitle'
|
||||
:obj='obj'
|
||||
:tableId="tableId"
|
||||
:api="url"
|
||||
:custom-table-title.sync="tools.customTableTitle"
|
||||
:layout="['elementSet']"
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
<nz-bottom-data-list
|
||||
:showTitle='showTitle'
|
||||
:obj='obj'
|
||||
:tableId="tableId"
|
||||
:targetTab.sync="targetTab"
|
||||
:api="url"
|
||||
style="height: 100%"
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<template>
|
||||
<nz-bottom-data-list
|
||||
:showTitle='showTitle'
|
||||
:tableId="tableId"
|
||||
:obj='obj'
|
||||
:layout="[]"
|
||||
:tabs="tabs"
|
||||
@@ -91,7 +92,8 @@ export default {
|
||||
},
|
||||
records: [ // 加载更多时有多个record,否则只有一个
|
||||
|
||||
]
|
||||
],
|
||||
tableId: 'terminaLogCMDTab'
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
:tabs="tabs"
|
||||
:targetTab="targetTab"
|
||||
@changeTab="changeTab"
|
||||
:tableId="tableId"
|
||||
:title="'Session ID'"
|
||||
>
|
||||
<template v-slot:title><span :title="obj.uuid.substring(0, 8).toUpperCase()">{{obj.uuid.substring(0, 8).toUpperCase()}}</span></template>
|
||||
@@ -36,6 +37,7 @@ export default {
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
tableId: 'terminaLogMonitorTab',
|
||||
filter: {
|
||||
size: 1,
|
||||
uuid: ''
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
<nz-bottom-data-list
|
||||
:showTitle='showTitle'
|
||||
:obj='obj'
|
||||
:tableId="tableId"
|
||||
:layout="[]"
|
||||
:tabs="tabs"
|
||||
:targetTab="targetTab"
|
||||
@@ -49,6 +50,7 @@ export default {
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
tableId: 'terminaLogRecordTab',
|
||||
filter: {
|
||||
size: 1,
|
||||
uuid: ''
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
:obj='obj'
|
||||
:targetTab="targetTab"
|
||||
:api="url"
|
||||
:tableId="tableId"
|
||||
:custom-table-title.sync="tools.customTableTitle"
|
||||
:layout="['searchInput', 'elementSet']"
|
||||
:search-msg="searchMsg"
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
<nz-bottom-data-list
|
||||
:showTitle='showTitle'
|
||||
:obj='obj'
|
||||
:tableId="tableId"
|
||||
id="vsysBottomTab"
|
||||
:api="url"
|
||||
:custom-table-title.sync="tools.customTableTitle"
|
||||
|
||||
@@ -1314,10 +1314,12 @@ export default {
|
||||
if (pageSize && pageSize !== 'undefined') {
|
||||
this.pageObj.pageSize = pageSize
|
||||
}
|
||||
if (!this.$refs.dataTable && !this.$refs.dataDetail) {
|
||||
return
|
||||
let tableTitle = ''
|
||||
if (this.$refs.dataTable) {
|
||||
tableTitle = this.$refs.dataTable.tableTitle
|
||||
} else if (this.$refs.dataDetail) {
|
||||
tableTitle = this.$refs.dataDetail.tableTitle
|
||||
}
|
||||
const tableTitle = this.$refs.dataTable ? this.$refs.dataTable.tableTitle : this.$refs.dataDetail.tableTitle
|
||||
let localStorageTableTitle = localStorage.getItem('nz-tableTitle-' + localStorage.getItem('nz-username') + '-' + this.tableId)
|
||||
localStorageTableTitle = localStorageTableTitle ? JSON.parse(localStorageTableTitle) : tableTitle
|
||||
this.tools.customTableTitle = tableTitle.map((item, index) => { // 修复切换中英文的问题
|
||||
|
||||
Reference in New Issue
Block a user