mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-07-07 15:35:07 +08:00
39 lines
868 B
Vue
39 lines
868 B
Vue
![]() |
<template>
|
||
|
<!-- 列表 -->
|
||
|
<ContentWrap>
|
||
|
<el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true">
|
||
|
<el-table-column label="编号" align="center" prop="id" />
|
||
|
<el-table-column label="手机" align="center" prop="mobile" />
|
||
|
</el-table>
|
||
|
</ContentWrap>
|
||
|
</template>
|
||
|
|
||
|
<script setup lang="ts">
|
||
|
const props = defineProps<{
|
||
|
studentId: undefined // 学生编号
|
||
|
}>()
|
||
|
const loading = ref(true) // 列表的加载中
|
||
|
const list = ref([]) // 列表的数据
|
||
|
|
||
|
/** 查询列表 */
|
||
|
const getList = async () => {
|
||
|
loading.value = true
|
||
|
try {
|
||
|
// const data = await DemoStudentApi.getDemoStudentPage(queryParams)
|
||
|
list.value = [
|
||
|
{
|
||
|
id: props.studentId,
|
||
|
mobile: '15601691300'
|
||
|
}
|
||
|
]
|
||
|
} finally {
|
||
|
loading.value = false
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/** 初始化 **/
|
||
|
onMounted(() => {
|
||
|
getList()
|
||
|
})
|
||
|
</script>
|