|
@@ -4,7 +4,7 @@
|
|
|
<div style="display: flex">
|
|
<div style="display: flex">
|
|
|
<div style="display: flex; justify-content: center; align-items: center">
|
|
<div style="display: flex; justify-content: center; align-items: center">
|
|
|
<a-image :width="24" :src="allResource" :preview="false" />
|
|
<a-image :width="24" :src="allResource" :preview="false" />
|
|
|
- <span style="font-weight: bold;font-size: 20px;" class="ml-2">共计 {{ total }} 个资源</span>
|
|
|
|
|
|
|
+ <span style="font-weight: bold; font-size: 20px" class="ml-2">共计 {{ total }} 个资源</span>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div style="width: 20px"></div>
|
|
<div style="width: 20px"></div>
|
|
@@ -68,7 +68,10 @@
|
|
|
</a-row>
|
|
</a-row>
|
|
|
|
|
|
|
|
<div style="height: 20px"></div>
|
|
<div style="height: 20px"></div>
|
|
|
- <div style="display: flex; width: 100%; align-items: center; justify-content: center">
|
|
|
|
|
|
|
+ <a-spin :spinning="spinning">
|
|
|
|
|
+ <a-empty v-if="resources.length <= 0" />
|
|
|
|
|
+ </a-spin>
|
|
|
|
|
+ <div style="display: flex; width: 100%; align-items: center; justify-content: center" v-if="resources.length > 0">
|
|
|
<a-pagination
|
|
<a-pagination
|
|
|
v-model:current="currentPage.current"
|
|
v-model:current="currentPage.current"
|
|
|
v-model:pageSize="currentPage.size"
|
|
v-model:pageSize="currentPage.size"
|
|
@@ -76,7 +79,6 @@
|
|
|
@change="onChange"
|
|
@change="onChange"
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|
|
|
- <div style="height: 20px"></div>
|
|
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -102,6 +104,7 @@
|
|
|
})
|
|
})
|
|
|
const searchKeyword = ref('')
|
|
const searchKeyword = ref('')
|
|
|
const resources = ref([])
|
|
const resources = ref([])
|
|
|
|
|
+ const spinning = ref(false)
|
|
|
const selectTab = (key) => {
|
|
const selectTab = (key) => {
|
|
|
if (key == 'latest') {
|
|
if (key == 'latest') {
|
|
|
tabKey.value = 0
|
|
tabKey.value = 0
|
|
@@ -134,6 +137,7 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const getList = () => {
|
|
const getList = () => {
|
|
|
|
|
+ spinning.value = true
|
|
|
list({ ...currentPage, ...queryData.value })
|
|
list({ ...currentPage, ...queryData.value })
|
|
|
.then(async (res) => {
|
|
.then(async (res) => {
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
@@ -154,6 +158,9 @@
|
|
|
.catch((err) => {
|
|
.catch((err) => {
|
|
|
console.log(err)
|
|
console.log(err)
|
|
|
})
|
|
})
|
|
|
|
|
+ .finally(() => {
|
|
|
|
|
+ spinning.value = false
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const upLoadList = (data) => {
|
|
const upLoadList = (data) => {
|