mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-07-12 18:05:07 +08:00
主子表:同步三种模式的代码
This commit is contained in:
38
src/views/infra/demo03/DemoStudentContactList.vue
Normal file
38
src/views/infra/demo03/DemoStudentContactList.vue
Normal file
@ -0,0 +1,38 @@
|
||||
<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>
|
Reference in New Issue
Block a user