修改所有列表页面 加载效果

This commit is contained in:
Master 2024-07-16 16:07:57 +08:00
parent 755f7d4e78
commit 7d756f3c1e
25 changed files with 67 additions and 23 deletions

View File

@ -18,7 +18,7 @@
}
}
<template>
<div class="@(@Model.LowerClassName)-container" v-loading="options.loading">
<div class="@(@Model.LowerClassName)-container">
<el-card shadow="hover" :body-style="{ padding: '20px 20px 16px 10px', display: 'flex', width: '100%', height: '100%', alignItems: 'start' }">
<el-form :model="state.queryParams" ref="queryForm" :show-message="false" :inlineMessage="true" label-width="auto" style="flex: 1 1 0%" @@submit.prevent="handleQuery" >
<el-row :gutter="10">
@ -334,7 +334,9 @@ const handleQueryApi = async (page: VxeGridPropTypes.ProxyAjaxQueryPageParams, s
// 查询操作
const handleQuery = async (reset = false) => {
options.loading = true;
await xGrid.value?.commitProxy('query');
options.loading = false;
};
// 重置操作

View File

@ -1,5 +1,5 @@
<template>
<div class="notice-container" v-loading="options.loading">
<div class="notice-container">
<el-card shadow="hover" :body-style="{ padding: '5px 5px 0 5px', display: 'flex', width: '100%', height: '100%', alignItems: 'start' }">
<el-form :model="state.queryParams" ref="queryForm" :show-message="false" :inlineMessage="true" label-width="auto" style="flex: 1 1 0%">
<el-row :gutter="10">

View File

@ -1,5 +1,5 @@
<template>
<div class="sys-codeGen-container" v-loading="options.loading">
<div class="sys-codeGen-container">
<el-card shadow="hover" :body-style="{ padding: '5px 5px 0 5px', display: 'flex', width: '100%', height: '100%', alignItems: 'start' }">
<el-form :model="state.queryParams" ref="queryForm" :show-message="false" :inlineMessage="true" label-width="auto" style="flex: 1 1 0%">
<el-row :gutter="10">
@ -161,7 +161,9 @@ const handleQueryApi = async (page: VxeGridPropTypes.ProxyAjaxQueryPageParams, s
//
const handleQuery = async () => {
options.loading = true;
await xGrid.value?.commitProxy('query');
options.loading = false;
};
//

View File

@ -1,5 +1,5 @@
<template>
<div class="sys-config-container" v-loading="options.loading">
<div class="sys-config-container">
<el-card shadow="hover" :body-style="{ padding: '5px 5px 0 5px', display: 'flex', width: '100%', height: '100%', alignItems: 'start' }">
<el-form :model="state.queryParams" ref="queryForm" :show-message="false" :inlineMessage="true" label-width="auto" style="flex: 1 1 0%">
<el-row :gutter="10">
@ -148,7 +148,9 @@ const handleQueryApi = async (page: VxeGridPropTypes.ProxyAjaxQueryPageParams, s
//
const handleQuery = async () => {
// vxe-gridcommitProxy(query)
options.loading = true;
await xGrid.value?.commitProxy('query');
options.loading = false;
};
//

View File

@ -1,5 +1,5 @@
<template>
<div class="sys-database-container" v-loading="options.loading">
<div class="sys-database-container">
<el-card shadow="hover" :body-style="{ padding: '5px 5px 0 5px', display: 'flex', width: '100%', height: '100%', alignItems: 'start' }">
<el-form :model="state.queryParams" ref="queryForm" :show-message="false" :inlineMessage="true" label-width="auto" style="flex: 1 1 0%">
<el-row :gutter="10">
@ -169,7 +169,9 @@ const handleQueryColumnApi = async () => {
//
const handleQueryColumn = async () => {
options.loading = true;
await xGrid.value?.commitProxy('query');
options.loading = false;
};
//

View File

@ -1,5 +1,5 @@
<template>
<div class="sys-file-container" v-loading="options.loading">
<div class="sys-file-container">
<el-card shadow="hover" :body-style="{ padding: '5px 5px 0 5px', display: 'flex', width: '100%', height: '100%', alignItems: 'start' }">
<el-form :model="state.queryParams" ref="queryForm" :show-message="false" :inlineMessage="true" label-width="auto" style="flex: 1 1 0%">
<el-row :gutter="10">
@ -223,7 +223,9 @@ const handleQueryApi = async (page: VxeGridPropTypes.ProxyAjaxQueryPageParams, s
//
const handleQuery = async () => {
options.loading = true;
await xGrid.value?.commitProxy('query');
options.loading = false;
};
//

View File

@ -1,5 +1,5 @@
<template>
<div class="sys-job-container" v-loading="options.loading">
<div class="sys-job-container">
<el-card shadow="hover" :body-style="{ padding: '5px 5px 0 5px', display: 'flex', width: '100%', height: '100%', alignItems: 'start' }">
<el-form :model="state.queryParams" ref="queryForm" :show-message="false" :inlineMessage="true" label-width="auto" style="flex: 1 1 0%">
<el-row :gutter="10">

View File

@ -165,7 +165,9 @@ const handleQueryApi = async (page: VxeGridPropTypes.ProxyAjaxQueryPageParams, s
//
const handleQuery = async () => {
options.loading = true;
await xGrid.value?.commitProxy('query');
options.loading = false;
};
//

View File

@ -1,5 +1,5 @@
<template>
<div class="sys-difflog-container" v-loading="options.loading">
<div class="sys-difflog-container">
<el-card shadow="hover" :body-style="{ padding: '5px 5px 0 5px', display: 'flex', width: '100%', height: '100%', alignItems: 'start' }">
<el-form :model="state.queryParams" ref="queryForm" :show-message="false" :inlineMessage="true" label-width="auto" style="flex: 1 1 0%">
<el-row :gutter="10">
@ -118,7 +118,9 @@ const handleQueryApi = async (page: VxeGridPropTypes.ProxyAjaxQueryPageParams, s
//
const handleQuery = async () => {
options.loading = true;
await xGrid.value?.commitProxy('query');
options.loading = false;
};
//

View File

@ -1,5 +1,5 @@
<template>
<div class="sys-exlog-container" v-loading="options.loading">
<div class="sys-exlog-container">
<el-card shadow="hover" :body-style="{ padding: '5px 5px 0 5px', display: 'flex', width: '100%', height: '100%', alignItems: 'start' }">
<el-form :model="state.queryParams" ref="queryForm" :show-message="false" :inlineMessage="true" label-width="auto" style="flex: 1 1 0%">
<el-row :gutter="10">
@ -191,7 +191,9 @@ const handleQueryApi = async (page: VxeGridPropTypes.ProxyAjaxQueryPageParams, s
//
const handleQuery = async () => {
options.loading = true;
await xGrid.value?.commitProxy('query');
options.loading = false;
};
//

View File

@ -1,5 +1,5 @@
<template>
<div class="sys-oplog-container" v-loading="options.loading">
<div class="sys-oplog-container">
<el-card shadow="hover" :body-style="{ padding: '5px 5px 0 5px', display: 'flex', width: '100%', height: '100%', alignItems: 'start' }">
<el-form :model="state.queryParams" ref="queryForm" :show-message="false" :inlineMessage="true" label-width="auto" style="flex: 1 1 0%">
<el-row :gutter="10">
@ -193,7 +193,9 @@ const handleQueryApi = async (page: VxeGridPropTypes.ProxyAjaxQueryPageParams, s
//
const handleQuery = async () => {
options.loading = true;
await xGrid.value?.commitProxy('query');
options.loading = false;
};
//

View File

@ -1,5 +1,5 @@
<template>
<div class="sys-vislog-container" v-loading="options.loading">
<div class="sys-vislog-container">
<el-card shadow="hover" :body-style="{ padding: '5px 5px 0 5px', display: 'flex', width: '100%', height: '100%', alignItems: 'start' }">
<el-form :model="state.queryParams" ref="queryForm" :show-message="false" :inlineMessage="true" label-width="auto" style="flex: 1 1 0%">
<el-row :gutter="10">
@ -143,7 +143,9 @@ const handleQueryApi = async (page: VxeGridPropTypes.ProxyAjaxQueryPageParams, s
//
const handleQuery = async () => {
options.loading = true;
await xGrid.value?.commitProxy('query');
options.loading = false;
};
//

View File

@ -1,5 +1,5 @@
<template>
<div class="sys-menu-container" v-loading="options.loading">
<div class="sys-menu-container">
<el-card shadow="hover" :body-style="{ padding: '5px 5px 0 5px', display: 'flex', width: '100%', height: '100%', alignItems: 'start' }">
<el-form :model="state.queryParams" ref="queryForm" :show-message="false" :inlineMessage="true" label-width="auto" style="flex: 1 1 0%">
<el-row :gutter="10">
@ -144,7 +144,9 @@ const handleQueryApi = async () => {
//
const handleQuery = async () => {
// vxe-gridcommitProxy(query)
options.loading = true;
await xGrid.value?.commitProxy('query');
options.loading = false;
};
//

View File

@ -1,5 +1,5 @@
<template>
<div class="sys-notice-container" v-loading="options.loading">
<div class="sys-notice-container">
<el-card shadow="hover" :body-style="{ padding: '5px 5px 0 5px', display: 'flex', width: '100%', height: '100%', alignItems: 'start' }">
<el-form :model="state.queryParams" ref="queryForm" :show-message="false" :inlineMessage="true" label-width="auto" style="flex: 1 1 0%">
<el-row :gutter="10">
@ -147,7 +147,9 @@ const handleQueryApi = async (page: VxeGridPropTypes.ProxyAjaxQueryPageParams, s
//
const handleQuery = async () => {
options.loading = true;
await xGrid.value?.commitProxy('query');
options.loading = false;
};
//

View File

@ -1,5 +1,5 @@
<template>
<div class="sysOAuthUser-container" v-loading="options.loading">
<div class="sysOAuthUser-container">
<el-card shadow="hover" :body-style="{ padding: '5px 5px 0 5px', display: 'flex', width: '100%', height: '100%', alignItems: 'start' }">
<el-form :model="state.queryParams" ref="queryForm" :show-message="false" :inlineMessage="true" label-width="auto" style="flex: 1 1 0%">
<el-row :gutter="10">
@ -147,7 +147,9 @@ const handleQueryApi = async (page: VxeGridPropTypes.ProxyAjaxQueryPageParams, s
//
const handleQuery = async () => {
options.loading = true;
await xGrid.value?.commitProxy('query');
options.loading = false;
};
//

View File

@ -179,7 +179,9 @@ const handleQueryApi = async (page: VxeGridPropTypes.ProxyAjaxQueryPageParams, s
//
const handleQuery = async () => {
options.loading = true;
await xGrid.value?.commitProxy('query');
options.loading = false;
};
//

View File

@ -1,5 +1,5 @@
<template>
<div class="sys-open-access-container" v-loading="options.loading">
<div class="sys-open-access-container">
<el-card shadow="hover" :body-style="{ padding: '5px 5px 0 5px', display: 'flex', width: '100%', height: '100%', alignItems: 'start' }">
<el-form :model="state.queryParams" ref="queryForm" :show-message="false" :inlineMessage="true" label-width="auto" style="flex: 1 1 0%">
<el-row :gutter="10">
@ -134,7 +134,9 @@ const handleQueryApi = async (page: VxeGridPropTypes.ProxyAjaxQueryPageParams, s
//
const handleQuery = async () => {
options.loading = true;
await xGrid.value?.commitProxy('query');
options.loading = false;
};
//

View File

@ -1,5 +1,5 @@
<template>
<div class="sys-org-container" v-loading="options.loading">
<div class="sys-org-container">
<el-row :gutter="5" style="width: 100%; height: 100%">
<el-col :span="4" :xs="24" style="display: flex; height: 100%">
<OrgTree ref="orgTreeRef" @node-click="handleNodeChange" />

View File

@ -1,5 +1,5 @@
<template>
<div class="sys-plugin-container" v-loading="options.loading">
<div class="sys-plugin-container">
<el-card shadow="hover" :body-style="{ padding: '5px 5px 0 5px', display: 'flex', width: '100%', height: '100%', alignItems: 'start' }">
<el-form :model="state.queryParams" ref="queryForm" :show-message="false" :inlineMessage="true" label-width="auto" style="flex: 1 1 0%">
<el-row :gutter="10">
@ -128,7 +128,9 @@ const handleQueryApi = async (page: VxeGridPropTypes.ProxyAjaxQueryPageParams, s
//
const handleQuery = async () => {
options.loading = true;
await xGrid.value?.commitProxy('query');
options.loading = false;
};
//

View File

@ -1,5 +1,5 @@
<template>
<div class="sys-pos-container" v-loading="options.loading">
<div class="sys-pos-container">
<el-card shadow="hover" :body-style="{ padding: '5px 5px 0 5px', display: 'flex', width: '100%', height: '100%', alignItems: 'start' }">
<el-form :model="state.queryParams" ref="queryForm" :show-message="false" :inlineMessage="true" label-width="auto" style="flex: 1 1 0%">
<el-row :gutter="10">
@ -134,7 +134,9 @@ const handleQueryApi = async (page: VxeGridPropTypes.ProxyAjaxQueryPageParams, s
//
const handleQuery = async () => {
// vxe-gridcommitProxy(query)
options.loading = true;
await xGrid.value?.commitProxy('query');
options.loading = false;
};
//

View File

@ -1,5 +1,5 @@
<template>
<div class="sys-print-container" v-loading="options.loading">
<div class="sys-print-container">
<el-card shadow="hover" :body-style="{ padding: '5px 5px 0 5px', display: 'flex', width: '100%', height: '100%', alignItems: 'start' }">
<el-form :model="state.queryParams" ref="queryForm" :show-message="false" :inlineMessage="true" label-width="auto" style="flex: 1 1 0%">
<el-row :gutter="10">
@ -130,7 +130,9 @@ const handleQueryApi = async (page: VxeGridPropTypes.ProxyAjaxQueryPageParams, s
//
const handleQuery = async () => {
options.loading = true;
await xGrid.value?.commitProxy('query');
options.loading = false;
};
//

View File

@ -1,5 +1,5 @@
<template>
<div class="sys-region-container" v-loading="options.loading">
<div class="sys-region-container">
<el-row :gutter="5" style="width: 100%; height: 100%">
<el-col :span="6" :xs="24" style="display: flex; height: 100%">
<RegionTree ref="regionTreeRef" @node-click="handleNodeChange" />
@ -150,7 +150,9 @@ const handleQueryApi = async (page: VxeGridPropTypes.ProxyAjaxQueryPageParams, s
//
const handleQuery = async () => {
options.loading = true;
await xGrid.value?.commitProxy('query');
options.loading = false;
};
//

View File

@ -1,5 +1,5 @@
<template>
<div class="sys-role-container" v-loading="options.loading">
<div class="sys-role-container">
<el-card shadow="hover" :body-style="{ padding: '5px 5px 0 5px', display: 'flex', width: '100%', height: '100%', alignItems: 'start' }">
<el-form :model="state.queryParams" ref="queryForm" :show-message="false" :inlineMessage="true" label-width="auto" style="flex: 1 1 0%">
<el-row :gutter="10">
@ -155,7 +155,9 @@ const handleQueryApi = async (page: VxeGridPropTypes.ProxyAjaxQueryPageParams, s
//
const handleQuery = async () => {
options.loading = true;
await xGrid.value?.commitProxy('query');
options.loading = false;
};
//

View File

@ -1,5 +1,5 @@
<template>
<div class="sys-tenant-container" v-loading="options.loading">
<div class="sys-tenant-container">
<el-card shadow="hover" :body-style="{ padding: '5px 5px 0 5px', display: 'flex', width: '100%', height: '100%', alignItems: 'start' }">
<el-form :model="state.queryParams" ref="queryForm" :show-message="false" :inlineMessage="true" label-width="auto" style="flex: 1 1 0%">
<el-row :gutter="10">
@ -184,7 +184,9 @@ const handleQueryApi = async (page: VxeGridPropTypes.ProxyAjaxQueryPageParams, s
//
const handleQuery = async () => {
options.loading = true;
await xGrid.value?.commitProxy('query');
options.loading = false;
};
//

View File

@ -1,5 +1,5 @@
<template>
<div class="sys-user-container" v-loading="options.loading">
<div class="sys-user-container">
<el-row :gutter="5" style="width: 100%; height: 100%">
<el-col :span="4" :xs="24" style="display: flex; height: 100%">
<OrgTree ref="treeRef" @node-click="handleNodeChange" />
@ -184,7 +184,9 @@ const handleQueryApi = async (page: VxeGridPropTypes.ProxyAjaxQueryPageParams, s
//
const handleQuery = async () => {
options.loading = true;
await xGrid.value?.commitProxy('query');
options.loading = false;
};
//