feat: 所有表格 添加 loading
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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