2024-11-13 09:42:42 +08:00
|
|
|
<template>
|
2024-11-15 16:40:47 +08:00
|
|
|
<view>
|
|
|
|
|
<view class="scroll-table" v-if="list.length != 0">
|
2025-04-15 17:48:27 +08:00
|
|
|
<view
|
|
|
|
|
v-for="(item, index) in list"
|
|
|
|
|
:key="index"
|
|
|
|
|
style="margin: 5px 20px 5px 10px"
|
|
|
|
|
>
|
2024-11-15 16:40:47 +08:00
|
|
|
<Card :info="item" />
|
|
|
|
|
</view>
|
2025-04-15 17:48:27 +08:00
|
|
|
<view style="height: 50px"></view>
|
2024-11-15 16:40:47 +08:00
|
|
|
</view>
|
|
|
|
|
<view
|
2025-04-15 17:48:27 +08:00
|
|
|
style="
|
|
|
|
|
height: calc(100vh - 160px);
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
margin-top: 10px;
|
|
|
|
|
"
|
|
|
|
|
v-else
|
|
|
|
|
>
|
2024-11-15 16:40:47 +08:00
|
|
|
<image src="../../../static/empty.png" mode=""></image>
|
2024-11-13 09:42:42 +08:00
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2025-04-15 17:48:27 +08:00
|
|
|
import Card from "./card.vue";
|
|
|
|
|
export default {
|
|
|
|
|
components: {
|
|
|
|
|
Card,
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
list: [],
|
|
|
|
|
};
|
|
|
|
|
},
|
2024-11-15 16:40:47 +08:00
|
|
|
|
2025-04-15 17:48:27 +08:00
|
|
|
methods: {
|
|
|
|
|
async getData() {
|
|
|
|
|
uni.showLoading({
|
|
|
|
|
title: "加载中...",
|
|
|
|
|
mask: true,
|
|
|
|
|
});
|
|
|
|
|
try {
|
|
|
|
|
const { data } = await uni.$http.post("/gunshiApp/tsg/resPerson/page", {
|
|
|
|
|
pageSo: {
|
|
|
|
|
pageSize: 999,
|
|
|
|
|
pageNumber: 1,
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
if (data.code == 200) {
|
|
|
|
|
uni.hideLoading();
|
|
|
|
|
this.list = [...data.data.records];
|
2024-11-13 09:42:42 +08:00
|
|
|
}
|
2025-04-15 17:48:27 +08:00
|
|
|
} catch (e) {
|
|
|
|
|
uni.$showMsg();
|
|
|
|
|
}
|
2024-11-13 09:42:42 +08:00
|
|
|
},
|
2025-04-15 17:48:27 +08:00
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
this.getData();
|
|
|
|
|
},
|
|
|
|
|
};
|
2024-11-13 09:42:42 +08:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
2025-04-15 17:48:27 +08:00
|
|
|
.scroll-table {
|
|
|
|
|
height: calc(100vh - 100px);
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
width: 100%;
|
|
|
|
|
padding: 10px 5px;
|
|
|
|
|
}
|
2024-11-15 16:40:47 +08:00
|
|
|
</style>
|