diff --git a/src/components/ChooseList/ChooseMarks/index.vue b/src/components/ChooseList/ChooseMarks/index.vue index 8e5fe4d..8ee3391 100644 --- a/src/components/ChooseList/ChooseMarks/index.vue +++ b/src/components/ChooseList/ChooseMarks/index.vue @@ -7,11 +7,11 @@ 查询 - 重置 + 重置
- + @@ -77,6 +77,7 @@ const props = defineProps({ default: [] } }); +const loading = ref(false) const total = ref(0); const listQuery = ref({ pageCurrent: 1, @@ -87,7 +88,6 @@ const multipleUserRef = ref(null); const multipleSelectionUser = ref([]); const tableData = ref([]); const emits = defineEmits(["update:modelValue", "choosed"]); -const keyTabel = ref(0) const keyid = (row) => { return row.id; }; @@ -130,12 +130,15 @@ const handleCurrentChange = (currentPage) => { getListData(); }; const getListData = () => { - keyTabel.value++ - const params = {bqLb:'02',...listQuery.vlue} + loading.value = true; + const params = { ...listQuery.value, bqLb:'02',} qcckGet(params,'/mosty-gsxt/tbGsxtBqgl/selectPage').then(res=>{ + loading.value = false; tableData.value = res.records || []; total.value = res.total; multipleUser(); + }).catch(()=>{ + loading.value = false; }) }; diff --git a/src/components/ChooseList/ChooseQt/index.vue b/src/components/ChooseList/ChooseQt/index.vue index 87fbeb3..4840e09 100644 --- a/src/components/ChooseList/ChooseQt/index.vue +++ b/src/components/ChooseList/ChooseQt/index.vue @@ -13,7 +13,7 @@
- +