更新组件

This commit is contained in:
2025-07-15 16:56:26 +08:00
parent 3b6e0d6912
commit 42cb2cb268
29 changed files with 58 additions and 40 deletions

View File

@ -13,7 +13,7 @@
</el-form-item>
</el-form>
<div class="tabBox" :class="props.Single ? 'tabBoxRadio' : ''" style="margin-top: 0px">
<el-table ref="multipleUserRef" :key="keyTabel" @selection-change="handleSelectionChange" :data="tableData" border :row-key="keyid" style="width: 100%" height="450">
<el-table ref="multipleUserRef" v-loading="loading" :key="keyTabel" @selection-change="handleSelectionChange" :data="tableData" border :row-key="keyid" style="width: 100%" height="450">
<el-table-column type="selection" width="55" :reserve-selection="true"/>
<el-table-column type="expand">
<template #default="props">
@ -98,6 +98,7 @@ const props = defineProps({
default: []
},
});
const loading = ref(false)
const total = ref(0);
const listQuery = ref({
pageCurrent: 1,
@ -152,11 +153,15 @@ const handleCurrentChange = (currentPage) => {
};
const getListData = () => {
keyTabel.value++
const params = {...listQuery.vlue}
loading.value = true;
const params = {...listQuery.value}
qcckGet(params,'/mosty-gsxt/tbGsxtZdqt/selectPage').then(res=>{
loading.value = false;
tableData.value = res.records || [];
total.value = res.total;
multipleUser();
}).catch(()=>{
loading.value = false;
})
};