diff --git a/src/assets/css/components/views/setting/knowledgeBase.scss b/src/assets/css/components/views/setting/knowledgeBase.scss
index d2187016..f9263634 100644
--- a/src/assets/css/components/views/setting/knowledgeBase.scss
+++ b/src/assets/css/components/views/setting/knowledgeBase.scss
@@ -392,6 +392,14 @@
overflow-y:auto;
padding-right: 2px;
margin-bottom:30px;
+ .table-no-data{
+ height: 100%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ line-height: 60px;
+ color: #909399;
+ }
.el-checkbox-group {
display: grid;
grid-template-rows: repeat(auto-fill, 218px);
diff --git a/src/components/table/CnDataList.vue b/src/components/table/CnDataList.vue
index 43100a41..d837edb4 100644
--- a/src/components/table/CnDataList.vue
+++ b/src/components/table/CnDataList.vue
@@ -85,7 +85,8 @@ export default {
tools: {
showCustomTableTitle: false // 自定义列弹框是否显示
},
- showLayout: []
+ showLayout: [],
+ loading: true
}
},
methods: {
diff --git a/src/components/table/administration/ChartTable.vue b/src/components/table/administration/ChartTable.vue
index e3578d71..df6ee4d6 100644
--- a/src/components/table/administration/ChartTable.vue
+++ b/src/components/table/administration/ChartTable.vue
@@ -5,6 +5,7 @@
:data="tableData"
:height="height"
border
+ empty-text=" "
@header-dragend="dragend"
@sort-change="tableDataSort"
@selection-change="selectionChange"
@@ -81,6 +82,11 @@
{{scope.row[item.prop]}}
+
+
+
{{ $t('npm.noData') }}
+
+
@@ -91,6 +97,12 @@ import { panelTypeAndRouteMapping } from '@/utils/constants'
export default {
name: 'chartTable',
mixins: [table],
+ props: {
+ isNoData: {
+ type: Boolean,
+ default: false
+ }
+ },
data () {
return {
panelTypeAndRouteMapping: panelTypeAndRouteMapping,
diff --git a/src/components/table/administration/GalaxyProxyTable.vue b/src/components/table/administration/GalaxyProxyTable.vue
index aa07fe21..0f4c3a52 100644
--- a/src/components/table/administration/GalaxyProxyTable.vue
+++ b/src/components/table/administration/GalaxyProxyTable.vue
@@ -7,6 +7,7 @@
:height="height"
tooltip-effect="light"
border
+ empty-text=" "
@header-dragend="dragend"
@sort-change="tableDataSort"
@selection-change="selectionChange"
@@ -105,6 +106,11 @@
+
+
+
{{ $t('npm.noData') }}
+
+
@@ -115,6 +121,12 @@ import { copyValue } from '@/utils/tools'
export default {
name: 'galaxyProxyTable',
mixins: [table],
+ props: {
+ isNoData: {
+ type: Boolean,
+ default: false
+ }
+ },
data () {
return {
tableTitle: [ // 原始table列
diff --git a/src/components/table/administration/I18nTable.vue b/src/components/table/administration/I18nTable.vue
index 9e16fe56..a15b2bf4 100644
--- a/src/components/table/administration/I18nTable.vue
+++ b/src/components/table/administration/I18nTable.vue
@@ -5,6 +5,7 @@
:data="tableData"
:height="height"
border
+ empty-text=" "
@header-dragend="dragend"
@sort-change="tableDataSort"
@selection-change="selectionChange"
@@ -34,7 +35,11 @@
{{scope.row[item.prop]}}
-
+
+
+
{{ $t('npm.noData') }}
+
+
@@ -45,6 +50,12 @@ import { api } from '@/utils/api'
export default {
name: 'I18nTable',
mixins: [table],
+ props: {
+ isNoData: {
+ type: Boolean,
+ default: false
+ }
+ },
data () {
return {
url: api.i18nLang,
diff --git a/src/components/table/administration/OperationLogTable.vue b/src/components/table/administration/OperationLogTable.vue
index 2cebacac..55b82d12 100644
--- a/src/components/table/administration/OperationLogTable.vue
+++ b/src/components/table/administration/OperationLogTable.vue
@@ -6,6 +6,7 @@
:height="height"
tooltip-effect="light"
border
+ empty-text=" "
class="no-operation"
@header-dragend="dragend"
@sort-change="tableDataSort"
@@ -53,6 +54,11 @@
{{scope.row[item.prop]}}
+
+
+
{{ $t('npm.noData') }}
+
+
@@ -63,6 +69,12 @@ import { operationLogStateMapping } from '@/utils/constants'
export default {
name: 'roleTable',
mixins: [table],
+ props: {
+ isNoData: {
+ type: Boolean,
+ default: false
+ }
+ },
data () {
return {
operationLogStateMapping: operationLogStateMapping,
diff --git a/src/components/table/administration/RoleTable.vue b/src/components/table/administration/RoleTable.vue
index 3033d704..32967cd9 100644
--- a/src/components/table/administration/RoleTable.vue
+++ b/src/components/table/administration/RoleTable.vue
@@ -5,6 +5,7 @@
:data="tableData"
:height="height"
border
+ empty-text=" "
@header-dragend="dragend"
@sort-change="tableDataSort"
@selection-change="selectionChange"
@@ -49,6 +50,11 @@
{{scope.row[item.prop]}}
+
+
+
{{ $t('npm.noData') }}
+
+
@@ -57,6 +63,12 @@ import table from '@/mixins/table'
export default {
name: 'roleTable',
mixins: [table],
+ props: {
+ isNoData: {
+ type: Boolean,
+ default: false
+ }
+ },
data () {
return {
tableTitle: [ // 原table列
diff --git a/src/components/table/administration/UserTable.vue b/src/components/table/administration/UserTable.vue
index 3efec224..7b455a34 100644
--- a/src/components/table/administration/UserTable.vue
+++ b/src/components/table/administration/UserTable.vue
@@ -4,7 +4,7 @@
ref="dataTable"
:data="tableData"
:height="height"
- empty-text=""
+ empty-text=" "
border
@header-dragend="dragend"
@sort-change="tableDataSort"
@@ -63,6 +63,11 @@
{{scope.row[item.prop]}}
+
+
+
{{ $t('npm.noData') }}
+
+
@@ -73,6 +78,12 @@ import { storageKey } from '@/utils/constants'
export default {
name: 'userTable',
+ props: {
+ isNoData: {
+ type: Boolean,
+ default: false
+ }
+ },
mixins: [table],
data () {
return {
diff --git a/src/components/table/report/ReportTable.vue b/src/components/table/report/ReportTable.vue
index bbc6d184..82ca82c8 100644
--- a/src/components/table/report/ReportTable.vue
+++ b/src/components/table/report/ReportTable.vue
@@ -6,8 +6,8 @@
:data="tableData"
:height="height"
:expand-row-keys="expandedIds"
- :empty-text="$t('npm.noData')"
border
+ empty-text=" "
tooltip-effect="light"
:row-key="(row) => { return row.id }"
:reserve-selection="true"
@@ -188,6 +188,11 @@
{{ scope.row[item.prop] || '-' }}
+
+
+
{{ $t('npm.noData') }}
+
+
-
+
+
-
+
+
-
@@ -132,7 +135,6 @@