feat: 所有表格 添加 loading

This commit is contained in:
zhangyu
2021-05-18 19:18:14 +08:00
parent d34865c858
commit fd77ced048
26 changed files with 31 additions and 31 deletions

View File

@@ -26,7 +26,7 @@
<template v-slot:default="slotProps">
<alert-message-table
ref="dataTable"
v-loading="slotProps.loading"
v-loading="tools.loading"
:api="url"
:custom-table-title="tools.customTableTitle"
:height="mainTableHeight"

View File

@@ -37,7 +37,7 @@
<template v-slot:default="slotProps">
<alert-rule-table
ref="dataTable"
v-loading="slotProps.loading"
v-loading="tools.loading"
:api="url"
:custom-table-title="tools.customTableTitle"
:height="mainTableHeight"

View File

@@ -19,7 +19,7 @@
<template v-slot:default="slotProps">
<alert-silence-table
ref="dataTable"
v-loading="slotProps.loading"
v-loading="tools.loading"
:api="url"
:custom-table-title="tools.customTableTitle"
:height="mainTableHeight"

View File

@@ -48,7 +48,7 @@
<template v-slot:default="slotProps">
<asset-table
ref="dataTable"
v-loading="slotProps.loading"
v-loading="tools.loading"
:api="url"
:custom-table-title="tools.customTableTitle"
:height="dataListLayout.indexOf('clickSearch') > -1 ? assetTableHeight : mainTableHeight"

View File

@@ -22,7 +22,7 @@
<template v-slot:default="slotProps">
<agent-table
ref="dataTable"
v-loading="slotProps.loading"
v-loading="tools.loading"
:api="url"
:custom-table-title="tools.customTableTitle"
:height="mainTableHeight"

View File

@@ -34,7 +34,7 @@
<template v-slot:default="slotProps">
<asset-meta-table
ref="dataTable"
v-loading="slotProps.loading"
v-loading="tools.loading"
:api="url"
:custom-table-title="tools.customTableTitle"
:height="mainTableHeight"

View File

@@ -19,7 +19,7 @@
<template v-slot="slotProps">
<asset-type-table
ref="dataTable"
v-loading="slotProps.loading"
v-loading="tools.loading"
:api="url"
:custom-table-title="tools.customTableTitle"
:height="mainTableHeight"

View File

@@ -28,7 +28,7 @@
<template v-slot:default="slotProps">
<credentials-table
ref="dataTable"
v-loading="slotProps.loading"
v-loading="tools.loading"
:api="url"
:custom-table-title="tools.customTableTitle"
:height="mainTableHeight"

View File

@@ -19,7 +19,7 @@
<template v-slot:default="slotProps">
<dc-table
ref="dataTable"
v-loading="slotProps.loading"
v-loading="tools.loading"
:api="url"
:custom-table-title="tools.customTableTitle"
:height="mainTableHeight"

View File

@@ -17,7 +17,7 @@
<template v-slot="slotProps">
<menu-table
ref="dataTable"
v-loading="slotProps.loading"
v-loading="tools.loading"
:api="url"
:custom-table-title="tools.customTableTitle"
:height="mainTableHeight"

View File

@@ -30,7 +30,7 @@
<template v-slot:default="slotProps">
<mib-table
ref="dataTable"
v-loading="slotProps.loading"
v-loading="tools.loading"
:api="url"
:custom-table-title="tools.customTableTitle"
:height="mainTableHeight"

View File

@@ -19,7 +19,7 @@
<template v-slot="slotProps">
<model-table
ref="dataTable"
v-loading="slotProps.loading"
v-loading="tools.loading"
:api="url"
:custom-table-title="tools.customTableTitle"
:height="mainTableHeight"

View File

@@ -11,7 +11,7 @@
<template v-slot:default="slotProps">
<operation-log-table
ref="dataTable"
v-loading="slotProps.loading"
v-loading="tools.loading"
:api="url"
:custom-table-title="tools.customTableTitle"
:height="mainTableHeight"

View File

@@ -19,7 +19,7 @@
<template v-slot:default="slotProps">
<role-table
ref="dataTable"
v-loading="slotProps.loading"
v-loading="tools.loading"
:api="url"
:custom-table-title="tools.customTableTitle"
:height="mainTableHeight"

View File

@@ -18,7 +18,7 @@
<template v-slot:default="slotProps">
<api-key-table
ref="dataTable"
v-loading="slotProps.loading"
v-loading="tools.loading"
:table-id="tableId"
:api="url"
:custom-table-title="tools.customTableTitle"

View File

@@ -18,7 +18,7 @@
<template v-slot:default="slotProps">
<link-table
ref="dataTable"
v-loading="slotProps.loading"
v-loading="tools.loading"
:table-id="tableId"
:api="url"
:custom-table-title="tools.customTableTitle"

View File

@@ -19,7 +19,7 @@
<template v-slot:default="slotProps">
<notify-method-table
ref="dataTable"
v-loading="slotProps.loading"
v-loading="tools.loading"
:table-id="tableId"
:api="url"
:custom-table-title="tools.customTableTitle"

View File

@@ -42,7 +42,7 @@
<template v-slot="slotProps">
<chartTmplTable
ref="dataTable"
v-loading="slotProps.loading"
v-loading="tools.loading"
:api="url"
:custom-table-title="tools.customTableTitle"
:height="mainTableHeight"

View File

@@ -45,7 +45,7 @@
<template v-slot:default="slotProps">
<expr-tmpl-table
ref="dataTable"
v-loading="slotProps.loading"
v-loading="tools.loading"
:api="url"
:custom-table-title="tools.customTableTitle"
:height="mainTableHeight"

View File

@@ -11,7 +11,7 @@
<template v-slot:default="slotProps">
<terminal-log-table
ref="dataTable"
v-loading="slotProps.loading"
v-loading="tools.loading"
:api="url"
:custom-table-title="tools.customTableTitle"
:height="mainTableHeight"

View File

@@ -19,7 +19,7 @@
<template v-slot="slotProps">
<user-table
ref="dataTable"
v-loading="slotProps.loading"
v-loading="tools.loading"
:api="url"
:custom-table-title="tools.customTableTitle"
:height="mainTableHeight"

View File

@@ -320,14 +320,14 @@ export default {
closeChartBox (refresh) {
this.rightBox.chart.show = false
/* if (refresh) {
this.getData(this.filter)
} */
},
closeChartTempBox () {
closeChartTempBox (refresh) {
this.rightBox.chartTemp.show = false
/* if (refresh) {
} */
if (refresh) {
this.getData(this.filter)
}
},
closePanelBox (refresh) {
this.rightBox.panel.show = false

View File

@@ -44,10 +44,10 @@
<template v-slot:search>
<clickSearch :titleSearchList="titleSearchList" :selectValue.sync="selectValue" @reload="reloadTable"/>
</template>
<template v-slot="slotProps">
<template v-slot:default="slotProps">
<endpoint-table
ref="dataTable"
v-loading="slotProps.loading"
:loading="tools.loading"
:api="url"
:custom-table-title="tools.customTableTitle"
:height="dataListLayout.indexOf('clickSearch') > -1 ? endpointTableHeight : mainTableHeight"

View File

@@ -34,7 +34,7 @@
<template v-slot="slotProps">
<module-table
ref="dataTable"
v-loading="slotProps.loading"
v-loading="tools.loading"
:api="url"
:tableId="tableId"
:custom-table-title="tools.customTableTitle"

View File

@@ -20,7 +20,7 @@
<template v-slot="slotProps">
<project-table
ref="dataTable"
v-loading="slotProps.loading"
v-loading="tools.loading"
:api="url"
:custom-table-title="tools.customTableTitle"
:height="projectTableHeight"

View File

@@ -1 +1 @@
{"baseUrl":"/", "version": "2.0.2021.05.08.18.07"}
{"baseUrl":"http://192.168.40.42:8080/nz-admin/", "version": "2.0.2021.05.11.19.43"}