|
@@ -4,6 +4,7 @@
|
|
|
class="ant-table-small"
|
|
|
size="small"
|
|
|
:row-class-name="(_record, index) => (index % 2 === 1 ? 'table-striped' : null)"
|
|
|
+ :loading="loading"
|
|
|
bordered>
|
|
|
<a-table-column title="企业名称" data-index="enterprisename" width="200px">
|
|
|
</a-table-column>
|
|
@@ -121,7 +122,9 @@ import utils from '@/utils/utils'
|
|
|
const props = defineProps(['data'])
|
|
|
|
|
|
const data = ref([])
|
|
|
+const loading = ref(false)
|
|
|
const targetData = async () => {
|
|
|
+ loading.value = true
|
|
|
const res = await Api.requested({
|
|
|
"id": "20230110151902",
|
|
|
"content": {
|
|
@@ -131,6 +134,7 @@ const targetData = async () => {
|
|
|
}
|
|
|
})
|
|
|
data.value = res.data
|
|
|
+ loading.value = false
|
|
|
}
|
|
|
onMounted(()=>{
|
|
|
targetData()
|