feat: 所有表格 添加 loading
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"}
|
||||
|
||||
Reference in New Issue
Block a user