fix: 表格列数据响应改为 ref/重新加载表格10s

This commit is contained in:
TsMask
2023-11-27 16:58:55 +08:00
parent ec21656385
commit 7be72be2f8
4 changed files with 10 additions and 10 deletions

View File

@@ -477,7 +477,7 @@ export default {
import: 'Import', import: 'Import',
loadDataConfirm: 'Are you sure you want to reload the data?', loadDataConfirm: 'Are you sure you want to reload the data?',
loadData: 'Load Data', loadData: 'Load Data',
loadDataTip: 'Successfully obtained updated data: {num} items. The system is updating the data internally. Please do not click repeatedly to obtain updates!!!', loadDataTip: 'Successfully fetched updated data: {num} entries, the system is internally updating the data. You can click reset to refresh the data list after the loading is finished, please don it repeat click to get update!!!!',
startIMSI: 'Start IMSI', startIMSI: 'Start IMSI',
batchAddText: 'Batch Add', batchAddText: 'Batch Add',
batchDelText: 'Batch Delete', batchDelText: 'Batch Delete',
@@ -501,7 +501,7 @@ export default {
import: 'Import', import: 'Import',
loadDataConfirm: 'Are you sure you want to reload the data?', loadDataConfirm: 'Are you sure you want to reload the data?',
loadData: 'Updated Data', loadData: 'Updated Data',
loadDataTip: 'Successfully fetched updated data: {num} items, the system internally carries out the data update, please do not repeatedly click to get the update!!!!', loadDataTip: 'Successfully fetched updated data: {num} entries, the system is internally updating the data. You can click reset to refresh the data list after the loading is finished, please don it repeat click to get update!!!!',
numAdd: 'Number of releases', numAdd: 'Number of releases',
numDel: 'Number of deleted', numDel: 'Number of deleted',
batchAddText: 'Batch Add', batchAddText: 'Batch Add',

View File

@@ -477,7 +477,7 @@ export default {
import: '导入', import: '导入',
loadDataConfirm: '确认要重新加载数据吗?', loadDataConfirm: '确认要重新加载数据吗?',
loadData: '更新数据', loadData: '更新数据',
loadDataTip: '成功获取更新数据:{num}条,系统内部进行数据更新,请勿重复点击获取更新!!!', loadDataTip: '成功获取更新数据:{num}条,系统内部正在进行数据更新。加载结束后可点击重置刷新数据列表,请勿重复点击获取更新!!!',
startIMSI: '起始IMSI', startIMSI: '起始IMSI',
batchAddText: '批量新增', batchAddText: '批量新增',
batchDelText: '批量删除', batchDelText: '批量删除',
@@ -502,7 +502,7 @@ export default {
import: '导入', import: '导入',
loadDataConfirm: '确认要重新加载数据吗?', loadDataConfirm: '确认要重新加载数据吗?',
loadData: '更新数据', loadData: '更新数据',
loadDataTip: '成功获取更新数据:{num}条,系统内部进行数据更新,请勿重复点击获取更新!!!', loadDataTip: '成功获取更新数据:{num}条,系统内部正在进行数据更新。加载结束后可点击重置刷新数据列表,请勿重复点击获取更新!!!',
numAdd: '放号个数', numAdd: '放号个数',
numDel: '删除个数', numDel: '删除个数',
batchAddText: '批量新增', batchAddText: '批量新增',

View File

@@ -129,7 +129,7 @@ let tableColumns: ColumnsType = [
]; ];
/**表格字段列排序 */ /**表格字段列排序 */
let tableColumnsDnd = reactive<ColumnsType>([]); let tableColumnsDnd = ref<ColumnsType>([]);
/**表格分页器参数 */ /**表格分页器参数 */
let tablePagination = reactive({ let tablePagination = reactive({
@@ -555,12 +555,12 @@ function fnLoadData() {
description: t('views.neUser.auth.loadDataTip', { num: res.data }), description: t('views.neUser.auth.loadDataTip', { num: res.data }),
duration: 10, duration: 10,
}); });
// 延迟5s后关闭loading刷新列表 // 延迟10s后关闭loading刷新列表
setTimeout(() => { setTimeout(() => {
modalState.loadDataLoading = false; modalState.loadDataLoading = false;
tableState.loading = false; // 表格loading tableState.loading = false; // 表格loading
fnQueryReset(); fnQueryReset();
}, 5000); }, 10_000);
} else { } else {
message.error({ message.error({
content: t('common.getInfoFail'), content: t('common.getInfoFail'),

View File

@@ -166,7 +166,7 @@ let tableColumns: ColumnsType = [
]; ];
/**表格字段列排序 */ /**表格字段列排序 */
let tableColumnsDnd = reactive<ColumnsType>([]); let tableColumnsDnd = ref<ColumnsType>([]);
/**表格分页器参数 */ /**表格分页器参数 */
let tablePagination = reactive({ let tablePagination = reactive({
@@ -783,12 +783,12 @@ function fnLoadData() {
description: t('views.neUser.sub.loadDataTip', { num: res.data }), description: t('views.neUser.sub.loadDataTip', { num: res.data }),
duration: 10, duration: 10,
}); });
// 延迟5s后关闭loading刷新列表 // 延迟10s后关闭loading刷新列表
setTimeout(() => { setTimeout(() => {
modalState.loadDataLoading = false; modalState.loadDataLoading = false;
tableState.loading = false; // 表格loading tableState.loading = false; // 表格loading
fnQueryReset(); fnQueryReset();
}, 5000); }, 10_000);
} else { } else {
message.error({ message.error({
content: t('common.getInfoFail'), content: t('common.getInfoFail'),