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"> <template v-slot:default="slotProps">
<alert-message-table <alert-message-table
ref="dataTable" ref="dataTable"
v-loading="slotProps.loading" v-loading="tools.loading"
:api="url" :api="url"
:custom-table-title="tools.customTableTitle" :custom-table-title="tools.customTableTitle"
:height="mainTableHeight" :height="mainTableHeight"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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