diff --git a/src/views/cet/cet-student-query.vue b/src/views/cet/cet-student-query.vue index 4ab8832..761f5a5 100644 --- a/src/views/cet/cet-student-query.vue +++ b/src/views/cet/cet-student-query.vue @@ -34,7 +34,7 @@
- +
@@ -44,7 +44,6 @@ import { reactive, ref } from 'vue'; import type { UnwrapRef } from 'vue'; import { message } from 'ant-design-vue'; import type { Rule } from 'ant-design-vue/es/form'; -import { table } from 'console'; interface FormState { name: string; id: string; @@ -55,7 +54,7 @@ const search: UnwrapRef = reactive({ id: '', }); const isShow = ref(false); -const loadding = ref(false); +const loading = ref(false); const tableData = ref([]); const tableLabel = ref([ { @@ -105,12 +104,14 @@ const url = ref({ const formRef = ref(); const handleSearch = () => { formRef.value.validate().then(async () => { + loading.value = true; tableData.value = await defHttp.post({ url: url.value.getData, params: search, }); tableData.value = tableData.value.results; console.log(tableData.value); + loading.value = false; if (tableData.value.length > 0) { isShow.value = true; } else { @@ -145,4 +146,4 @@ const handleClear = () => { border-bottom: 1px solid #f0f0f0; } } - \ No newline at end of file +