|
|
@ -34,10 +34,11 @@ const params = ref({ |
|
|
|
//获取学生 |
|
|
|
//获取学生 |
|
|
|
const getData = async () => { |
|
|
|
const getData = async () => { |
|
|
|
loading.value = true |
|
|
|
loading.value = true |
|
|
|
|
|
|
|
console.log(params.value, 'params') |
|
|
|
|
|
|
|
|
|
|
|
await stuPageService(params.value).then((res) => { |
|
|
|
await stuPageService(params.value).then((res) => { |
|
|
|
tableData.value = res.data.Records |
|
|
|
tableData.value = res.data.Records |
|
|
|
total.value = res.data.totalCount |
|
|
|
total.value = res.data.totalCount |
|
|
|
console.log(tableData.value, 'params') |
|
|
|
|
|
|
|
loading.value = false |
|
|
|
loading.value = false |
|
|
|
// console.log(res.data.totalCount, 'res.data') |
|
|
|
// console.log(res.data.totalCount, 'res.data') |
|
|
|
isFirstLoad.value = false |
|
|
|
isFirstLoad.value = false |
|
|
@ -237,7 +238,6 @@ onMounted(() => { |
|
|
|
}) |
|
|
|
}) |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<page-container title="文章分类"> |
|
|
|
|
|
|
|
<el-card class="page-container"> |
|
|
|
<el-card class="page-container"> |
|
|
|
<template #header> |
|
|
|
<template #header> |
|
|
|
<div class="card-header"> |
|
|
|
<div class="card-header"> |
|
|
@ -336,7 +336,6 @@ onMounted(() => { |
|
|
|
<el-table-column prop="nickName" label="昵称" /> |
|
|
|
<el-table-column prop="nickName" label="昵称" /> |
|
|
|
<el-table-column prop="sex" label="性别" /> |
|
|
|
<el-table-column prop="sex" label="性别" /> |
|
|
|
<el-table-column prop="major" label="专业" /> |
|
|
|
<el-table-column prop="major" label="专业" /> |
|
|
|
<el-table-column prop="yearAge" label="年级" /> |
|
|
|
|
|
|
|
<el-table-column prop="createTime" label="创建时间" width="200" /> |
|
|
|
<el-table-column prop="createTime" label="创建时间" width="200" /> |
|
|
|
<el-table-column prop="status" label="状态"> |
|
|
|
<el-table-column prop="status" label="状态"> |
|
|
|
<template v-slot="scope"> |
|
|
|
<template v-slot="scope"> |
|
|
@ -353,7 +352,6 @@ onMounted(() => { |
|
|
|
<template #default="{ row }"> |
|
|
|
<template #default="{ row }"> |
|
|
|
<el-button |
|
|
|
<el-button |
|
|
|
type="primary" |
|
|
|
type="primary" |
|
|
|
size="small" |
|
|
|
|
|
|
|
:icon="Edit" |
|
|
|
:icon="Edit" |
|
|
|
circle |
|
|
|
circle |
|
|
|
plain |
|
|
|
plain |
|
|
@ -362,7 +360,6 @@ onMounted(() => { |
|
|
|
<el-button |
|
|
|
<el-button |
|
|
|
:icon="Delete" |
|
|
|
:icon="Delete" |
|
|
|
type="danger" |
|
|
|
type="danger" |
|
|
|
size="small" |
|
|
|
|
|
|
|
circle |
|
|
|
circle |
|
|
|
plain |
|
|
|
plain |
|
|
|
@click="delTable(row)" |
|
|
|
@click="delTable(row)" |
|
|
@ -377,8 +374,6 @@ onMounted(() => { |
|
|
|
v-model:current-page="params.page" |
|
|
|
v-model:current-page="params.page" |
|
|
|
v-model:page-size="params.pagesize" |
|
|
|
v-model:page-size="params.pagesize" |
|
|
|
:page-sizes="[3, 5, 7, 10]" |
|
|
|
:page-sizes="[3, 5, 7, 10]" |
|
|
|
:size="small" |
|
|
|
|
|
|
|
:disabled="disabled" |
|
|
|
|
|
|
|
:background="true" |
|
|
|
:background="true" |
|
|
|
layout="total, sizes, prev, pager, next, jumper" |
|
|
|
layout="total, sizes, prev, pager, next, jumper" |
|
|
|
:total="total" |
|
|
|
:total="total" |
|
|
@ -390,7 +385,6 @@ onMounted(() => { |
|
|
|
<!-- <edit-stu ref="stuChange"></edit-stu> --> |
|
|
|
<!-- <edit-stu ref="stuChange"></edit-stu> --> |
|
|
|
|
|
|
|
|
|
|
|
<edit-stu ref="stuChange" @success="onSuccess()"></edit-stu> |
|
|
|
<edit-stu ref="stuChange" @success="onSuccess()"></edit-stu> |
|
|
|
</page-container> |
|
|
|
|
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
<style lang="scss" scoped> |
|
|
|