Compare commits

...

2 Commits

  1. 13
      src/api/user/stud.js
  2. 39
      src/api/user/user.js
  3. 43
      src/layout/logo/index.vue
  4. 2
      src/setting.ts
  5. 4
      src/styles/variable.scss
  6. 125
      src/views/course/components/KnowledgeGraphUi/FoldAdd.vue
  7. 44
      src/views/course/components/KnowledgeGraphUi/foldInfoUi.vue
  8. 46
      src/views/course/components/course-object.vue
  9. 17
      src/views/course/components/resource-management.vue
  10. 219
      src/views/course/courseChapters.vue
  11. 3
      src/views/home/components/Lessonlist.vue
  12. 145
      src/views/home/components/Status.vue
  13. 2
      src/views/home/components/Welcome.vue
  14. 37
      src/views/home/index.vue
  15. 49
      src/views/login/index.vue
  16. 236
      src/views/student/components/editStu.vue
  17. 109
      src/views/student/index.vue

@ -13,10 +13,17 @@ export const stuNumberService = (params) => {
`/api/studentManage/page?number=${params.number}&page=${params.page}&pageSize=${params.pagesize}&userId=${params.id}`,
)
}
//获取学生
// export const stuListService = (id) => {
// return request.get(`/api/studentManage/${id}`)
//获取一行的学生信息
export const stuListService = (id) => {
return request.get(`/api/studentManage/${id}`)
}
// export function getById(id) {
// return request.get(`/api/studentManage/${id}`);
// }
//修改
export const updateStuService = (params) => {
return request.put(`/api/studentManage`, params)
}
//删除和批量删除学生
export const delStuListService = (ids) => {
return request.delete(`/api/studentManage/batchDelete?ids=${ids}`)

@ -40,26 +40,17 @@ export const userIdenService = (id) => {
return request.post('/api/user/personal/info?id=' + id)
}
//修改个人信息
export const userIdenChangeService = (dataToSend) => {
return request.post('/api/user/update/PersonalInfo', dataToSend, {
headers: { 'Content-Type': 'application/json;charset=UTF-8' },
})
export const userIdenChangeService = (params) => {
// return request.post('/api/user/update/PersonalInfo', params, {
// headers: { 'Content-Type': 'application/json;charset=UTF-8' },
// })
return request.post(`/api/user/update/PersonalInfo`, params)
}
//修改密码
export const userChangePasswordService = (dataToSend) => {
return request.post('/api/user/updatePassword', dataToSend)
}
//获取排名靠前的课程
export const userToplessonService = () => request.get('#')
//获取最新收藏的课程
export const userNewLikeService = (id) => {
return request.post('/api/course_favour/newCollect?userId=' + id)
}
//获取学生列表
export const userStudentListService = (id) => {
return request.post('/api/coursesteacher/studentList?userId=' + id)
}
//获取课程列表
export const userLessonListService = (id) => {
return request.post('/api/courselearingrecord/courseList?userId=' + id)
@ -76,3 +67,23 @@ export const userPicService = () => {
export const userMaxKnowService = (id) => {
return request.post('/api/knowledgelearning/studyMaxKnowledge?userId=' + id)
}
//获取推荐课程
export const userToplessonService = (userId) => {
return request.post(
`/api/courselearingrecord/recommendCourses?userId=${userId}`,
)
}
//获取推荐知识点
export const userTopKnowService = (userId) => {
return request.post(
`/api/knowledgelearning/recommendKnowledge?userId=${userId}`,
)
}
//获取最新收藏的课程
export const userNewLikeService = (id) => {
return request.post('/api/course_favour/newCollect?userId=' + id)
}
//获取学生列表
export const userStudentListService = (id) => {
return request.post('/api/coursesteacher/studentList?userId=' + id)
}

@ -1,8 +1,10 @@
<template>
<div class="logo" v-if="setting.logoHidden" @click="goHome">
<img :src="setting.logo" alt="" />
<div class="font">
<p v-show="!fold">{{ setting.title }}</p>
</div>
</div>
</template>
<script lang="ts" setup>
@ -32,24 +34,59 @@ export default {
}
</script>
<style lang="scss" scoped>
// .logo {
// width: 100%;
// height: $base-menu-logo-height;
// color: #000000;
// font-weight: 700;
// display: flex;
// align-items: center;
// cursor: pointer;
// // padding: 20px;
// padding: 0 0 0 15px;
// text-overflow: hidden;
// img {
// width: 40px;
// height: 40px;
// }
// p {
// // width: 80%;
// margin-left: 10px;
// font-size: 13px;
// font-size: $base-menu-logo-title-size;
// white-space: nowrap;
// }
// }
.logo {
width: 100%;
height: $base-menu-logo-height;
// background-color: aqua;
// height: 10%;
color: #000000;
font-weight: 700;
display: flex;
align-items: center;
cursor: pointer;
// padding: 20px;
padding: 0 0 0 15px;
padding: 8px 15px 0 15px;
justify-content: center;
flex-direction: column;
img {
width: 40px;
width: 100%;
height: 40px;
// margin: 0 auto;
}
p {
margin-left: 10px;
// margin-left: 10px;
font-size: $base-menu-logo-title-size;
// font-size: $base-menu-logo-title-size;
white-space: nowrap;
padding: 10px 10px;
}
// .logo-img {
// width: 100%;
// }
}
</style>

@ -1,6 +1,6 @@
// 用于项目logo 标题配置
export default {
title: '教学一体化后台', //项目标题
title: '课图——首个开源课程知识图谱管理系统', //项目标题
logo: '/public/vite.svg', //项目logo
logoHidden: true, // logo隐藏设置
'files.associations': {

@ -9,6 +9,6 @@ $base-menu-background:#ffffff;
// 顶部导航高度
$base-tabbar-height:50px;
// 左侧菜单logo高度
$base-menu-logo-height:50px;
$base-menu-logo-height:70px;
// 左侧菜单标题文字大小
$base-menu-logo-title-size:20px;
$base-menu-logo-title-size:13px;

@ -1,5 +1,4 @@
<template>
<<<<<<< HEAD
<div class="add-or-edit">
<el-drawer v-model="isDrawer" title="新增章节" direction="rtl" size="50%">
<el-form
@ -48,31 +47,6 @@
</el-form>
</el-drawer>
</div>
=======
<div class="add-or-edit">
<el-drawer v-model="isDrawer" title="新增章节" direction="rtl" size="50%">
<el-form ref="ruleFormRef" style="max-width: 600px" :model="ruleForm" :rules="rules" label-width="auto"
class="demo-ruleForm" :size="formSize" status-icon>
<el-form-item label="章节" prop="pid">
<el-cascader v-model="activePidArr" :options="options1" :props="CascaderProps"
:show-all-levels="false" clearable />
</el-form-item>
<el-form-item label="章节名" prop="name">
<el-input v-model="ruleForm.name" style="width: 240px" :placeholder="placeholder" />
</el-form-item>
<el-form-item label="总学时" prop="totalclasshours">
<el-input v-model="ruleForm.totalclasshours" style="width: 240px" placeholder="请输入总学时" />
</el-form-item>
<el-form-item>
<el-button type="primary" :loading="loading" @click="submitForm(ruleFormRef)">
提交
</el-button>
<el-button @click="resetForm(ruleFormRef)">重置</el-button>
</el-form-item>
</el-form>
</el-drawer>
</div>
>>>>>>> 0b7db324dad8347654933e91ae7e6ca8d2dabd05
</template>
<script lang="ts" setup>
function comNum(n: number | undefined) {
@ -87,28 +61,6 @@ const updLoading = (boo: boolean) => (loading.value = boo)
const isDrawer = ref(props.isD)
watch(
<<<<<<< HEAD
() => props.isD,
(newVal) => (isDrawer.value = newVal),
)
watch(
() => isDrawer.value,
(newVal) => emits('update:isD', newVal),
)
const options1 = computed(() => {
const arr = props.data.map((item: any, i: number) => {
const obj = { ...item }
if (item.chapterSection)
obj.chapterSection = item.chapterSection.map((chap: any) => ({
...chap,
disabled: true,
}))
else obj.chapterSection = []
obj.chapterSection.push({
name: `${i + 1}章第${comNum(item.chapterSection?.length)}`,
pid: item.id,
=======
() => props.isD,
(newVal) => (isDrawer.value = newVal),
)
@ -131,23 +83,14 @@ const options1 = computed(() => {
pid: item.id,
})
return obj
>>>>>>> 0b7db324dad8347654933e91ae7e6ca8d2dabd05
})
return obj
})
arr.push({ name: `${arr.length + 1}`, pid: '' })
return arr
})
const CascaderProps = {
<<<<<<< HEAD
label: 'name',
value: 'pid',
children: 'chapterSection',
=======
label: 'name',
value: 'pid',
children: 'chapterSection',
>>>>>>> 0b7db324dad8347654933e91ae7e6ca8d2dabd05
}
import type { ComponentSize, FormInstance, FormRules } from 'element-plus'
@ -177,7 +120,6 @@ interface RuleForm {
const formSize = ref<ComponentSize>('default')
const ruleFormRef = ref<FormInstance>()
const ruleForm = reactive<RuleForm>({
<<<<<<< HEAD
content: '',
courseid: '2fa0fd63262230639d2c45a3acd9045c',
courseobjectivesid: '',
@ -222,52 +164,6 @@ const submitForm = async (formEl: FormInstance | undefined) => {
console.log('error submit!', fields)
}
})
=======
content: '',
courseid: '2fa0fd63262230639d2c45a3acd9045c',
courseobjectivesid: '',
createBy: '',
createTime: '',
id: '',
name: '',
num: 0,
numshow: '',
onlinclasshours: '',
pid: undefined,
requirement: '',
sysOrgCode: '',
totalclasshours: '',
updateBy: '',
updateTime: '',
zc: '',
ziyuan: '',
zywj: '',
})
// @ts-ignore
const validateChapterOrSection = (rule, value, callback) => {
nextTick(() => {
const value = ruleForm.pid
if (!value && value !== '') callback(new Error('请选择新增的章或节'))
else callback()
})
}
//
const rules = reactive<FormRules<RuleForm>>({
pid: [
{ required: true, validator: validateChapterOrSection, trigger: 'change' },
],
})
const submitForm = async (formEl: FormInstance | undefined) => {
if (!formEl) return
await formEl.validate((valid, fields) => {
if (valid) {
emits('submit', ruleForm, updLoading)
} else {
console.log('error submit!', fields)
}
})
>>>>>>> 0b7db324dad8347654933e91ae7e6ca8d2dabd05
}
const resetForm = (formEl: FormInstance | undefined) => {
@ -277,26 +173,6 @@ const resetForm = (formEl: FormInstance | undefined) => {
}
const placeholder = ref('请输入章节名')
watch(
<<<<<<< HEAD
() => ruleForm.pid,
(newVal) => {
if (newVal === undefined) placeholder.value = '请输入章节名'
else if (newVal === '') placeholder.value = '请输入章名'
else placeholder.value = '请输入节名'
},
)
const activePidArr = ref<string[] | undefined>([])
watch(
() => activePidArr.value,
(newVal) => {
// pid
if (newVal === undefined) {
ruleForm.pid = undefined
return
}
ruleForm.pid = newVal.slice(-1)[0]
},
=======
() => ruleForm.pid,
(newVal) => {
if (newVal === undefined) placeholder.value = '请输入章节名'
@ -315,7 +191,6 @@ watch(
}
ruleForm.pid = newVal.slice(-1)[0]
},
>>>>>>> 0b7db324dad8347654933e91ae7e6ca8d2dabd05
)
</script>
<style lang="scss"></style>

@ -2,15 +2,11 @@
<div class="fold-info-ui">
<div class="demo-collapse">
<el-collapse class="collapse">
<<<<<<< HEAD
<button
class="my-button"
style="position: absolute; left: 0; top: 0"
@click.stop="emits('add')"
>
=======
<button class="my-button" style="position: absolute; left: 0; top: 0" @click.stop="emits('add')">
>>>>>>> 0b7db324dad8347654933e91ae7e6ca8d2dabd05
新增
</button>
<el-collapse-item v-for="item in foldInfoData" :key="item.id">
@ -30,7 +26,6 @@
</div>
<div class="my-tag">本章资源</div>
</div>
<<<<<<< HEAD
<button
class="my-button"
@click.stop="emits('edit', item)"
@ -44,12 +39,6 @@
class="is-el-button"
style="margin-right: 10px"
>
=======
<button class="my-button" @click.stop="emits('edit', item)" style="margin-right: 10px">
编辑
</button>
<my-btn :id="item.id" type="danger" class="is-el-button" style="margin-right: 10px">
>>>>>>> 0b7db324dad8347654933e91ae7e6ca8d2dabd05
删除
</my-btn>
</div>
@ -63,15 +52,11 @@
<div class="left"></div>
<div class="right">
<div class="structure-item">
<<<<<<< HEAD
<div
class="structure-item-titile-box"
v-for="(obj, ind) in item.chapterSection"
:key="item.id"
>
=======
<div class="structure-item-titile-box" v-for="(obj, ind) in item.chapterSection" :key="item.id">
>>>>>>> 0b7db324dad8347654933e91ae7e6ca8d2dabd05
<div class="titile-box-titile">
<div class="sequence">{{ ind + 1 }}</div>
<div class="tit-box">
@ -85,7 +70,6 @@
</div>
</div>
<div class="tit-box-edit">
<<<<<<< HEAD
<button
class="my-button"
@click.stop="emits('edit', obj)"
@ -99,12 +83,6 @@
class="is-el-button"
style="margin-right: 10px"
>
=======
<button class="my-button" @click.stop="emits('edit', obj)" style="margin-right: 10px">
编辑
</button>
<my-btn :id="obj.id" type="danger" class="is-el-button" style="margin-right: 10px">
>>>>>>> 0b7db324dad8347654933e91ae7e6ca8d2dabd05
删除
</my-btn>
</div>
@ -308,11 +286,7 @@ const MyBtn = {
gap: 38px;
flex-wrap: wrap;
<<<<<<< HEAD
& > * {
=======
&>* {
>>>>>>> 0b7db324dad8347654933e91ae7e6ca8d2dabd05
border: 1px solid #0052d9;
font-weight: bold;
font-size: 12px;
@ -363,7 +337,6 @@ const MyBtn = {
cursor: pointer;
&:hover {
<<<<<<< HEAD
background: linear-gradient(
128deg,
lighten($color-start, 5%) 0%,
@ -385,23 +358,6 @@ const MyBtn = {
lighten($color-start, 20%) 0%,
lighten($color-end, 20%) 100%
);
=======
background: linear-gradient(128deg,
lighten($color-start, 5%) 0%,
lighten($color-end, 5%) 100%);
}
&:active {
background: linear-gradient(128deg,
darken($color-start, 10%) 0%,
darken($color-end, 10%) 100%);
}
&:disabled {
background: linear-gradient(128deg,
lighten($color-start, 20%) 0%,
lighten($color-end, 20%) 100%);
>>>>>>> 0b7db324dad8347654933e91ae7e6ca8d2dabd05
}
}

@ -181,7 +181,13 @@ const submit = async () => {
<template #header>
<div class="card-header">
<span>整体目标</span>
<el-button type="primary" :icon="Edit" circle plain @click="updateContent"></el-button>
<el-button
type="primary"
:icon="Edit"
circle
plain
@click="updateContent"
></el-button>
</div>
</template>
<div class="el-card__body" style="">
@ -214,8 +220,22 @@ const submit = async () => {
<li v-for="(obj, i) in item.contents" :key="obj.id">
<span>目标{{ i + 1 }}{{ obj.content }}</span>
<div class="icon">
<el-button type="primary" :icon="Edit" circle size="small" plain @click="updateObjectContent(obj.id)" />
<el-button type="danger" :icon="Delete" circle size="small" plain @click="delObject(obj.id)" />
<el-button
type="primary"
:icon="Edit"
circle
size="small"
plain
@click="updateObjectContent(obj.id)"
/>
<el-button
type="danger"
:icon="Delete"
circle
size="small"
plain
@click="delObject(obj.id)"
/>
</div>
</li>
</el-scrollbar>
@ -224,11 +244,23 @@ const submit = async () => {
<el-divider style="margin: 0; width: 100%" />
</li>
</ul>
<el-dialog v-if="dialogVisible" v-model="dialogVisible" :title="flog ? '编辑' : '新增'" width="500"
:before-close="handleClose">
<el-form :model="formData" label-width="auto" style="max-width: 600px">
<el-dialog
v-if="dialogVisible"
v-model="dialogVisible"
:title="flog ? '编辑' : '新增'"
width="500"
:before-close="handleClose"
>
<el-form
:model="formData"
label-width="auto"
style="max-width: 600px"
>
<el-form-item label="内容" prop="description">
<el-input v-model="formData.description" placeholder="请输入内容"></el-input>
<el-input
v-model="formData.description"
placeholder="请输入内容"
></el-input>
</el-form-item>
</el-form>
<template #footer>

@ -48,7 +48,10 @@ const tableData: User[] = [
<template>
<div class="grid-content resource-management" style="height: 500px">
<h1>资源管理</h1>
<el-table :data="filterTableData" style="width: 90%; margin-left: 30px; font-size: 16px">
<el-table
:data="filterTableData"
style="width: 90%; margin-left: 30px; font-size: 16px"
>
<el-table-column label="相关内容" prop="chapter" />
<el-table-column label="文件名称" prop="name" />
<el-table-column label="文件类型" prop="type" />
@ -57,13 +60,21 @@ const tableData: User[] = [
<el-table-column label="文件类型" prop="name" /> -->
<el-table-column align="right">
<template #header>
<el-input v-model="search" size="small" placeholder="输入内容进行搜索" />
<el-input
v-model="search"
size="small"
placeholder="输入内容进行搜索"
/>
</template>
<template #default="scope">
<el-button size="small" @click="handleEdit(scope.$index, scope.row)">
编辑
</el-button>
<el-button size="small" type="danger" @click="handleDelete(scope.$index, scope.row)">
<el-button
size="small"
type="danger"
@click="handleDelete(scope.$index, scope.row)"
>
删除
</el-button>
</template>

@ -1,12 +1,4 @@
<template>
<<<<<<< HEAD
<div class="course-chapters">
<div class="flex-layout">
<div class="flex-left">
<div class="left" ref="atlasCon">
<!-- 知识图谱 -->
<atlas-ui @hadRouter="handle" />
=======
<div class="course-chapters">
<div class="flex-layout">
<div class="flex-left">
@ -22,33 +14,6 @@
<!-- 课程目标 -->
<objective-ui :orogramObjective="orogramObjective" />
</div>
<div class="bottom">
<!-- 可折叠基本概念 -->
<fold-info-ui :foldInfoData="foldInfoData" @add="showHide = true" @edit="hanEdit" @del="flodDel" />
<FoldAdd v-model:is-d="showHide" v-if="showHide" :data="foldInfoData" @submit="foldAddSubmit" />
<FoldEdit v-model:is-d="showHide1" v-if="showHide1" :editData="activeEditData" :data="foldInfoData"
@submit="foldEditSubmit" />
</div>
</div>
<div class="flex_right">
<div class="top-container">
<img src="" alt="" />
</div>
<div class="bottom-container radius-10">
<!-- 查看资源 -->
<look-resource-ui :lookResource="lookResource" />
</div>
</div>
>>>>>>> d7b4e7a9c5db447232028c52d0cc49bb8a28830e
</div>
<div class="right-top radius-10 vertical-line">
<!-- 计算机导论 -->
<theory-ui :learnInfo="learnInfo" />
</div>
<div class="right-bottom radius-10 vertical-line">
<!-- 课程目标 -->
<objective-ui :orogramObjective="orogramObjective" />
</div>
<div class="bottom">
<!-- 可折叠基本概念 -->
<fold-info-ui
@ -83,33 +48,11 @@
</div>
</div>
</div>
<<<<<<< HEAD
</div>
=======
>>>>>>> 0b7db324dad8347654933e91ae7e6ca8d2dabd05
</template>
<script lang="ts" setup>
import {
<<<<<<< HEAD
getLearnInfoApi,
getOrogramObjectiveApi,
} from '@/api/courseChaptersApi'
import {
getChapterApi,
deleteSectionApi,
addChapterApi,
updateChapterApi,
} from '@/api/sectionApi'
import {
theoryUi,
objectiveUi,
atlasUi,
lookResourceUi,
foldInfoUi,
FoldAdd,
FoldEdit,
=======
getLearnInfoApi,
getOrogramObjectiveApi,
} from '@/api/courseChaptersApi'
@ -127,7 +70,6 @@ import {
foldInfoUi,
FoldAdd,
FoldEdit,
>>>>>>> 0b7db324dad8347654933e91ae7e6ca8d2dabd05
} from './components/KnowledgeGraphUi/index'
import { ref, reactive } from 'vue'
import { useRouter } from 'vue-router'
@ -142,7 +84,6 @@ const handle = () => $router.push('/knowledgeAtlas')
const learnInfo: object[] = reactive([])
getLearnInfoApi().then((res) => learnInfo.push(...(res as object[])))
// getByIdCourseVoApi('2fa0fd63262230639d2c45a3acd9045c')
// objective-ui
const orogramObjective: any = reactive({})
getOrogramObjectiveApi().then((res) => Object.assign(orogramObjective, res))
@ -153,69 +94,15 @@ const lookResource: any = reactive({})
// fold-info-ui
const foldInfoData: any = reactive([])
function getFold() {
<<<<<<< HEAD
getChapterApi('2fa0fd63262230639d2c45a3acd9045c').then((res) => {
foldInfoData.length = 0
foldInfoData.push(...res.data)
})
=======
getChapterApi('2fa0fd63262230639d2c45a3acd9045c').then((res) => {
foldInfoData.length = 0
foldInfoData.push(...res.data)
})
>>>>>>> 0b7db324dad8347654933e91ae7e6ca8d2dabd05
}
getFold()
//
const showHide = ref(false)
function foldAddSubmit(data: any, updLoading: Function) {
<<<<<<< HEAD
updLoading(true)
addChapterApi(data)
.then(() => {
ElMessage({
message: `添加${data.pid === '' ? '章' : '节'}成功`,
type: 'success',
})
showHide.value = false
getFold()
})
.catch(() => {
ElMessage({
message: `添加${data.pid === '' ? '章' : '节'}失败`,
type: 'error',
})
})
.finally(() => updLoading(false))
}
//
<<<<<<< HEAD
const foldDelLoading = ref(false)
function flodDel(id: string) {
foldDelLoading.value = true
deleteSectionApi(id)
.then(() => {
ElMessage({
message: `删除成功`,
type: 'success',
})
getFold()
})
.catch(() => {
ElMessage({
message: `删除失败`,
type: 'error',
})
})
.finally(() => (foldDelLoading.value = false))
=======
function flodDel(id: string,setLoading:Function) {
setLoading(true)
deleteSectionApi(id).then(() => {
ElMessage({
message: `删除成功`,
type: 'success'
=======
updLoading(true)
addChapterApi(data)
.then(() => {
@ -245,7 +132,6 @@ function flodDel(id: string) {
type: 'success',
})
getFold()
>>>>>>> 0b7db324dad8347654933e91ae7e6ca8d2dabd05
})
.catch(() => {
ElMessage({
@ -253,12 +139,7 @@ function flodDel(id: string) {
type: 'error',
})
})
<<<<<<< HEAD
}).finally(() =>setLoading(false))
>>>>>>> d7b4e7a9c5db447232028c52d0cc49bb8a28830e
=======
.finally(() => (foldDelLoading.value = false))
>>>>>>> 0b7db324dad8347654933e91ae7e6ca8d2dabd05
}
//
const showHide1 = ref(false)
@ -268,7 +149,6 @@ function hanEdit(data: any) {
showHide1.value = true
}
function foldEditSubmit(data: any, updLoading: Function) {
<<<<<<< HEAD
updLoading(true)
updateChapterApi(data)
.then(() => {
@ -286,25 +166,6 @@ function foldEditSubmit(data: any, updLoading: Function) {
})
})
.finally(() => updLoading(false))
=======
updLoading(true)
updateChapterApi(data)
.then(() => {
ElMessage({
message: `更新${data.pid === '' ? '章' : '节'}成功`,
type: 'success',
})
showHide1.value = false
getFold()
})
.catch(() => {
ElMessage({
message: `更新${data.pid === '' ? '章' : '节'}失败`,
type: 'error',
})
})
.finally(() => updLoading(false))
>>>>>>> 0b7db324dad8347654933e91ae7e6ca8d2dabd05
}
</script>
@ -325,76 +186,6 @@ function foldEditSubmit(data: any, updLoading: Function) {
overflow: hidden;
}
.vertical-line {
position: relative;
<<<<<<< HEAD
=======
background: #f2f7fb;
>>>>>>> 0b7db324dad8347654933e91ae7e6ca8d2dabd05
&::before {
content: '';
display: block;
position: absolute;
height: 100%;
width: 12px;
background-color: #2147fb;
}
}
.flex-layout {
display: flex;
justify-content: space-between;
align-items: flex-start;
.flex-left {
display: grid;
grid-template-columns: 664px 555px;
justify-content: space-between;
width: 1243px;
.left {
grid-row: 1/3;
height: 424px;
}
.right-top {
width: 100%;
height: 243px;
}
.right-bottom {
align-self: end;
width: 100%;
height: 168px;
}
.bottom {
margin-top: 15px;
grid-column: 1/3;
width: 100%;
min-width: 100%;
min-height: 521px;
}
}
<<<<<<< HEAD
.flex_right {
width: 355px;
.top-container {
height: 231px;
margin-bottom: 23px;
img {
width: 100%;
height: 100%;
=======
.radius-10 {
border-radius: 10px;
overflow: hidden;
}
.vertical-line {
position: relative;
@ -405,17 +196,8 @@ function foldEditSubmit(data: any, updLoading: Function) {
height: 100%;
width: 12px;
background-color: #2147fb;
>>>>>>> 0b7db324dad8347654933e91ae7e6ca8d2dabd05
}
}
.bottom-container {
min-height: 945px;
}
}
<<<<<<< HEAD
}
=======
.flex-layout {
display: flex;
@ -471,6 +253,5 @@ function foldEditSubmit(data: any, updLoading: Function) {
}
}
}
>>>>>>> 0b7db324dad8347654933e91ae7e6ca8d2dabd05
}
</style>

@ -16,7 +16,7 @@ const getLesList = async () => {
const res = await userLessonListService(userStore.data.id)
lessonList.value = res.data
loading.value = false
// console.log(res.data, 'less')
console.log(res.data, 'less')
}
const onGetCourseObject = async (id) => {
router.push({
@ -102,6 +102,7 @@ onMounted(() => {
border: 1px solid #e8e8f2;
margin: 10px 0px;
}
.lessonlist-item-info {
box-sizing: border-box;
padding: 6px 5px;

@ -1,12 +1,11 @@
<script setup>
import add from '@/assets/images/add.png'
// import tool from '@/utils/oss.js'
import { userChangeService } from '@/api/user/user.js'
import { userIdenChangeService } from '@/api/user/user.js'
import { ref, defineEmits, onMounted, reactive } from 'vue'
import { ElMessage } from 'element-plus'
import { Edit } from '@element-plus/icons-vue'
import { tool, client } from '@/utils/alioss.js'
// import { error } from 'echarts/types/src/util/log.js'
import useUserStore from '@/store/modules/user'
const props = defineProps({
data: {
type: Object,
@ -15,11 +14,14 @@ const props = defineProps({
type: Object,
},
})
const userStore = useUserStore()
const imageUrl = ref()
//
imageUrl.value = props.data.icon
// console.log(props.userData, 'img')
// console.log(props.userData, 'img1')
// console.log(props.data, 'imgs')
const beforeUpload = (file) => {
const validImageTypes = ['image/jpeg', 'image/png', 'image/gif', 'image/bmp']
if (!validImageTypes.includes(file.type)) {
@ -34,7 +36,6 @@ const upload = async (option) => {
const res = await tool.oss.upload(option.file)
imageUrl.value = res.url
changeInfo()
// console.log(imageUrl.value, 'img')
}
//
const emit = defineEmits(['get-avater', 'getInfo'])
@ -48,10 +49,8 @@ const changeInfo = async () => {
username: props.data.username,
}
const jsonData = JSON.stringify(userInfo)
await userChangeService(jsonData).then(() => {
await userIdenChangeService(jsonData).then(() => {
ElMessage.success('修改成功')
// console.log(imageUrl.value, 'fs')
emit('get-avater', imageUrl.value)
})
isUploading.value = false
@ -59,9 +58,20 @@ const changeInfo = async () => {
}
//
const dialog = ref(false)
const formLabelWidth = '68px'
const formLabelWidth = '80px'
// const defineForm = ref({
// name: props.userData.name,
// sex: props.userData.sex,
// nationality: props.userData.nationality,
// professionalTitle: props.userData,
// politicalStatus: props.userData,
// profession: props.userData,
// education: props.userData,
// academicDegree: props.userData,
// id: props.data.id,
// })
const form = ref({
name: '',
sex: '',
@ -72,10 +82,64 @@ const form = ref({
profession: '',
education: '',
academicDegree: '',
id: props.data.id,
})
form.value = { ...props.userData }
// console.log(props.userData, '')
// console.log(form.value, '')
//
const rules = reactive({
name: [
{ required: true, message: '请输入姓名', trigger: 'blur' },
{ min: 2, max: 5, message: '长度在2-5之间', trigger: 'blur' },
],
sex: [
{
required: true,
message: '请选择性别',
trigger: 'change',
},
],
nationality: [
{
message: '请输入民族',
trigger: 'blur',
},
],
professionalTitle: [
{ required: true, message: '职位不能为空', trigger: 'blur' },
{
min: 2,
max: 10,
message: '职位名称至少2个字符最多10个字符',
trigger: 'blur',
},
],
politicalStatus: [
{
required: true,
trigger: 'change',
},
],
profession: [
{
required: true,
trigger: 'change',
},
],
education: [
{
required: true,
trigger: 'change',
},
],
academicDegree: [
{
required: true,
trigger: 'change',
},
],
})
form.value.sex === '男' ? 0 : 1
const value = ref('')
value.value = form.value.politicalStatus
@ -86,15 +150,16 @@ const onCancel = () => {
dialog.value = false
}
//
const infoform = ref()
const res = ref()
const onSubmit = async () => {
// const jsonData = JSON.stringify(form.value)
// console.log(form.value, 'jj')
await userChangeService(form).then(() => {
await infoform.value.validate()
// console.log(form.value, 'form')
await await userIdenChangeService(form.value).then(() => {
ElMessage.success('修改成功')
// console.log(form.value, 'aaaa')
emit('getInfo', form.value)
// res.value = userStore.getUserInfo()
// emit('getInfo', res.value)
dialog.value = false
})
}
@ -121,19 +186,21 @@ const onSubmit = async () => {
<img :src="add" />
</el-upload>
<div class="info_content" style="height: 58px">
<div class="name">{{ props.data.username }}</div>
<div class="na">
{{ props.userData.professionalTitle }}
<div class="name">
{{ props.data.username }}
<el-icon class="icon" @click="openInfo">
<Edit />
</el-icon>
</div>
<!-- <div class="na">
{{ props.userData.professionalTitle }}
</div> -->
</div>
</div>
</div>
<el-drawer v-model="dialog" title="个人信息" class="demo-drawer">
<div class="content">
<el-form :model="form">
<el-form :model="form" class="infocont" :rules="rules" ref="infoform">
<el-form-item label="姓名" :label-width="formLabelWidth" prop="name">
<el-input v-model="form.name" autocomplete="off"></el-input>
</el-form-item>
@ -143,16 +210,6 @@ const onSubmit = async () => {
<el-radio value="女"></el-radio>
</el-radio-group>
</el-form-item>
<el-form-item
label="手机号"
:label-width="formLabelWidth"
prop="emergencyContact"
>
<el-input
v-model="form.emergencyContact"
autocomplete="off"
></el-input>
</el-form-item>
<el-form-item
label="民族"
:label-width="formLabelWidth"
@ -215,9 +272,7 @@ const onSubmit = async () => {
</el-form>
<div class="footer">
<el-button @click="onCancel">取消</el-button>
<el-button type="primary" :loading="loading" @click="onSubmit">
确认
</el-button>
<el-button type="primary" @click="onSubmit">确认</el-button>
</div>
</div>
</el-drawer>
@ -252,6 +307,9 @@ const onSubmit = async () => {
font-style: normal;
text-transform: none;
}
.el-form-item {
margin-bottom: 30px;
}
.na {
/* height: 28px; */
font-family: Inter, Inter;
@ -275,9 +333,9 @@ const onSubmit = async () => {
}
.footer {
display: flex;
justify-content: space-between;
justify-content: end;
align-items: center;
margin-top: 20px;
margin-top: 200px;
}
.iden {
width: 126px;
@ -298,6 +356,19 @@ const onSubmit = async () => {
border-radius: 50px 50px 50px 50px;
display: flex;
}
.content {
display: flex;
flex-direction: column;
justify-content: space-between;
}
::v-deep .el-drawer__body {
display: flex;
flex-direction: column;
justify-content: space-between;
}
.infocont {
}
span {
width: 24px;
height: 44px;

@ -187,7 +187,6 @@ const changeInfo = async () => {
emit('get-message', form.value.nickName)
emit('userInfoModified', res)
dialogFormVisible.value = false
form.value.newphone = ''
form.value.code = ''
})
@ -213,7 +212,6 @@ const changeInfo = async () => {
emit('get-message', form.value.nickName)
emit('userInfoModified', res)
dialogFormVisible.value = false
form.value.newphone = ''
form.value.code = ''
})

@ -10,6 +10,8 @@ import {
userNewLikeService,
userLookService,
userMaxKnowService,
userTopKnowService,
userToplessonService,
} from '@/api/user/user'
import useUserStore from '@/store/modules/user'
import { ref, onMounted } from 'vue'
@ -52,9 +54,10 @@ const getAvater = (avater) => {
const getInfo = (info) => {
// console.log(userStore.userInfo, 'msg')
userStore.userInfo = info
// console.log(userStore.userData, 'icon111')
console.log(userStore.userData, 'icon111')
}
const courselist = ref([])
const toplist = ref([])
// const img = ref()
// const courseName = ref()
// const courseTea = ref()
@ -69,6 +72,13 @@ function fetchNewUserInfo(res) {
// userInfo
data.value = res
}
//
const topKnow = ref([])
const gettopKnow = async () => {
const res = await userTopKnowService(userStore.data.id)
topKnow.value = res.data
// console.log(maxKnow.value, 'max')
}
onMounted(() => {
// getData()
username.value = userStore.userName
@ -95,10 +105,18 @@ onMounted(() => {
courselist.value = res.data
loading.value = false
})
//
userToplessonService(userStore.data.id).then((res) => {
loading.value = true
toplist.value = res.data
loading.value = false
})
//echart
userLookService()
//
getmaxKnow()
//
gettopKnow()
})
</script>
<template>
@ -154,7 +172,7 @@ onMounted(() => {
></conheader>
</a>
<div class="contt">
<p class="button" round v-for="item in maxKnow" :key="item.id">
<p class="button" round v-for="item in topKnow" :key="item.id">
{{ item.label }}
</p>
</div>
@ -175,7 +193,9 @@ onMounted(() => {
<conheader :title="`推荐知识点`"></conheader>
</a>
<div class="contt">
<p class="button" round v-for="item in 30" :key="item">Roshabei</p>
<p class="button" round v-for="item in maxKnow" :key="item.id">
{{ item.label }}
</p>
</div>
</div>
</el-col>
@ -192,12 +212,14 @@ onMounted(() => {
</a>
<div class="con">
<ul>
<li class="lessonlist-item" v-for="(item, index) in 4" :key="item">
<!-- <img :src="fe" class="lessonlist-item-img" /> -->
<li
class="lessonlist-item"
v-for="(item, index) in toplist"
:key="item.id"
>
<div class="lessonlist-item-info">
<p>{{ index + 1 }}</p>
<h5>课程名称</h5>
<h5>{{ item.name || '暂无' }}</h5>
</div>
</li>
</ul>
@ -221,7 +243,6 @@ onMounted(() => {
class="lessonlist-item"
v-for="(item, index) in courselist"
:key="item.id"
v-loading="loading"
>
<div class="lessonlist-item-info">
<p>{{ index + 1 }}</p>

@ -1,10 +1,23 @@
<template>
<div id="your-element-selector" style="width: 100%; height: 100vh"></div>
<div class="login_container">
<el-row :span="24" style="height: 5%; background-color: #5577ff">
<el-row :span="24" style="height: 5%">
<el-col>
<div class="grid-content ep-bg-purple-dark">
<img src="" />
<div class="logo">
<div class="logo_main">
<img :src="setting.logo" alt="" />
<div class="font">
<p>{{ setting.title }}</p>
</div>
</div>
<a @click.prevent="goToPage">
<el-icon class="link">
<Link />
</el-icon>
</a>
</div>
</div>
</el-col>
</el-row>
@ -289,7 +302,7 @@
<script lang="ts" setup>
import { ref, onMounted, onUnmounted, onBeforeUnmount, watch } from 'vue'
import { User, Lock, Phone, Check } from '@element-plus/icons-vue'
import { User, Lock, Phone, Check, Link } from '@element-plus/icons-vue'
import { ElMessage } from 'element-plus'
import useUserStore from '@/store/modules/user'
import { useRouter, useRoute } from 'vue-router'
@ -300,6 +313,18 @@ import {
userCodeRegisterService,
} from '@/api/user/user'
// let loginForm = reactive({ username: 'admin', password: '111111' })
//logo
import useLayoutSettingStoe from '@/store/modules/setting'
// logo
import setting from '@/setting'
const goToPage = (event) => {
event.preventDefault()
// window.open('https:www.baidu.com', '_blank')
window.location.href = 'https:www.baidu.com'
}
const fold = ref(false)
const LayoutSettingStoe = useLayoutSettingStoe()
//
let userStore = useUserStore()
//
@ -572,6 +597,24 @@ onUnmounted(() => {
height: 100vh;
position: absolute;
top: 0;
.logo {
display: flex;
justify-content: space-between;
align-items: center;
padding: 5px 35px 0px 20px;
.logo_main {
display: flex;
align-items: center;
}
.font {
font-size: 20px;
font-family: 'YourChosenArtisticFont', sans-serif;
// text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
color: #171615;
// transform: rotateX(5deg) rotateY(5deg);
margin-left: 5px;
}
}
// background: url('../../assets/images/background.jpg') no-repeat;
.loin_form {
position: relative;

@ -0,0 +1,236 @@
<script setup>
import { ref } from 'vue'
import { stuListService, updateStuService } from '@/api/user/stud'
import { tool, client } from '@/utils/alioss.js'
import { ElMessage } from 'element-plus'
const drawer = ref(false)
const formLabelWidth = '80px'
const emit = defineEmits(['success'])
const imgUrl = ref()
const formModel = ref({
icon: '',
number: '',
name: '',
sex: '',
nickName: '',
username: '',
major: '',
yearAge: '',
createTime: '',
})
formModel.value.sex === '男' ? 0 : 1
const open = async (row) => {
drawer.value = true
await stuListService(row.id).then((res) => {
formModel.value = res.data
imgUrl.value = formModel.value.icon
// console.log(formModel.value.icon, 'defauleForm.value')
})
}
const beforeUpload = (file) => {
const validImageTypes = ['image/jpeg', 'image/png', 'image/gif', 'image/bmp']
if (!validImageTypes.includes(file.type)) {
ElMessage.error('请上传图片')
return false
}
return true
}
const upload = async (option) => {
const res = await tool.oss.upload(option.file)
// console.log(res, 'res')
formModel.value.icon = res.url
imgUrl.value = formModel.value.icon
}
const formRef = ref(null)
//
const rules = {
number: [
{ required: true, message: '请输入学号', trigger: 'blur' },
{ min: 2, max: 20, message: '长度在2-20之间', trigger: 'blur' },
],
name: [
{ required: true, message: '请输入姓名', trigger: 'blur' },
{ min: 2, max: 5, message: '长度在2-5之间', trigger: 'blur' },
],
sex: [
{
required: true,
message: '请选择性别',
trigger: 'change',
},
],
nickName: [
{
message: '请输入昵称',
trigger: 'blur',
},
],
username: [{ required: true }],
createTime: [{ required: true }],
major: [
{ required: true, message: '专业不能为空', trigger: 'blur' },
{
min: 2,
max: 20,
message: '职位名称至少2个字符最多20个字符',
trigger: 'blur',
},
],
yearAge: [
{
required: true,
trigger: 'change',
message: '请选择入学年份',
},
],
}
function formatDate(yearAge) {
return new Date(yearAge).toISOString()
}
//
const onSubmit = async () => {
await formRef.value.validate()
console.log(formModel.value, 'form')
await await updateStuService({
id: formModel.value.id,
userId: formModel.value.userId,
icon: formModel.value.icon,
number: formModel.value.number,
name: formModel.value.name,
sex: formModel.value.sex,
nickName: formModel.value.nickName,
major: formModel.value.major,
// yearAge: formModel.value.yearAge,
}).then(() => {
ElMessage.success('修改成功')
drawer.value = false
// console.log('aa')
emit('success', 'edit')
// console.log(form.value, 'aaaa')
// res.value = userStore.getUserInfo()
// emit('getInfo', res.value)
// dialog.value = false
})
}
const onCancel = () => {
drawer.value = false
}
defineExpose({
open,
})
</script>
<template>
<el-drawer v-model="drawer" title="编辑信息" style="">
<el-form
:model="formModel"
:rules="rules"
ref="formRef"
:label-width="formLabelWidth"
>
<el-form-item label="头像" prop="icon">
<el-upload
v-model="formModel.icon"
class="avatar-uploader"
:http-request="upload"
:show-file-list="false"
:before-upload="beforeUpload"
>
<img v-if="imgUrl" :src="imgUrl" class="avatar" />
<!-- <img v-if="imageUrl" :src="imageUrl" class="avatar" /> -->
<el-icon v-else class="avatar-uploader-icon"><Plus /></el-icon>
<template #tip>
<div class="el-upload__tip">图片文件要为jpg/png格式小于500kb</div>
</template>
</el-upload>
</el-form-item>
<el-form-item label="学号" prop="number">
<el-input v-model="formModel.number" placeholder="请输入学号" />
</el-form-item>
<el-form-item label="姓名" prop="name">
<el-input v-model="formModel.name" placeholder="请输入姓名" />
</el-form-item>
<el-form-item label="性别" prop="sex">
<el-radio-group v-model="formModel.sex">
<el-radio value="男"></el-radio>
<el-radio value="女"></el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="用户名" prop="userName">
<el-input v-model="formModel.username" readonly />
</el-form-item>
<el-form-item label="昵称" prop="nickName">
<el-input v-model="formModel.nickName" placeholder="请输入昵称" />
</el-form-item>
<el-form-item label="专业" prop="major">
<el-input v-model="formModel.major" placeholder="请输入专业" />
</el-form-item>
<el-form-item label="入学年分" prop="yearAge">
<el-date-picker
v-model="formModel.yearAge"
type="date"
placeholder="请选择入学年份"
:size="small"
style="width: 100%"
format="YYYY/MM/DD"
value-format="YYYY-MM-DD"
/>
<!-- <el-date-picker
v-model="formModel.yearAge"
type="datetime"
placeholder="Pick a Date"
format="YYYY/MM/DD hh:mm:ss"
value-format="YYYY-MM-DDThh:mm:ss"
/> -->
</el-form-item>
<el-form-item label="创建时间" prop="createTime">
<el-input v-model="formModel.createTime" readonly />
</el-form-item>
</el-form>
<div class="footer">
<el-button @click="onCancel">取消</el-button>
<el-button type="primary" @click="onSubmit">确认</el-button>
</div>
</el-drawer>
</template>
<style scoped lang="scss">
.avatar-uploader {
:deep() {
.avatar {
width: 178px;
height: 178px;
display: block;
}
.el-upload {
border: 1px dashed var(--el-border-color);
border-radius: 6px;
cursor: pointer;
position: relative;
overflow: hidden;
transition: var(--el-transition-duration-fast);
}
.el-upload:hover {
border-color: var(--el-color-primary);
}
.el-icon.avatar-uploader-icon {
font-size: 28px;
color: #8c939d;
width: 178px;
height: 178px;
text-align: center;
}
}
}
.footer {
display: flex;
justify-content: end;
align-items: center;
margin-top: 100px;
}
</style>

@ -1,6 +1,6 @@
<script setup>
import { Search, Edit, Delete, CircleClose } from '@element-plus/icons-vue'
import { ref, onMounted } from 'vue'
import { ref, onMounted, computed } from 'vue'
import {
// stuListService,
stuPageService,
@ -11,6 +11,7 @@ import {
} from '@/api/user/stud'
import { ElMessage, ElMessageBox } from 'element-plus'
import useUserStore from '@/store/modules/user'
import editStu from './components/editStu.vue'
import { tryOnMounted } from '@vueuse/core'
const userStore = useUserStore()
// console.log(userStore.data.id, 'icon') //
@ -59,19 +60,15 @@ const onCurrentChange = (page) => {
getData()
}
//
// const onSearch = () => {
// params.value.pagenum = 1
// // getArticleService()
// }
const loading = ref(false)
//
const drawer = ref(false)
//
const stuChange = ref()
const editTable = (row) => {
drawer.value = true
stuChange.value.open(row)
console.log(row)
drawer.value = true
}
//
const delTable = async (row) => {
@ -143,7 +140,8 @@ tableData.value.forEach((item) => {
})
async function handleStatusChange(row) {
status.value = row.status
console.log(status.value, 'status')
console.log(`${row.status}` === 1 ? true : false, 'status')
console.log(status.value === 0 ? true : false, 'status1')
console.log(`状态更改: ${row.status}`)
if (!isFirstLoad.value) {
await changeStaService(status.value, row.userId).then(() => {
@ -161,19 +159,13 @@ const studentName = ref()
function onFocus1() {
show1.value = true
}
// function onBlur1() {
// show1.value = true
// }
const closeName = () => {
show1.value = false
studentName.value = ''
}
const searchInfo = async () => {
params.value.name = studentName.value
// console.log(params.value.name, 'params.value.number')
if (studentName.value.trim() !== '') {
// show.value = true
// console.log(params.value.name, 'params')
await stuPageService({
page: 1,
pagesize: 3,
@ -197,14 +189,12 @@ function onFocus() {
function onblur1() {
show.value = false
}
// closeName
const clearIdinput = () => {
show.value = false
studentId.value = ''
}
const searchNumber = async () => {
// console.log(studentId.value, 'params.value.number')
// console.log(studentId.value > 0, 'params')
params.value.number = studentId.value
if (studentId.value > 0) {
await stuPageService({
@ -218,8 +208,6 @@ const searchNumber = async () => {
getData()
})
}
// console.log(res, 'change')
}
//
const onReset = () => {
@ -236,8 +224,14 @@ function clearInput1() {
studentName.value = ''
}
const value1 = ref(true)
console.log(typeof value1.value, 'value2')
const changeStatus = async (row) => {}
let switchValue = ref()
switchValue.value = tableData.value.status
const handleSwitchChange = (value) => {
switchValue.value === 1 ? true : false
}
const onSuccess = () => {
getData()
}
onMounted(() => {
getData()
})
@ -249,7 +243,6 @@ onMounted(() => {
<div class="card-header">
<span>学生信息</span>
<div>
<el-switch v-model="value1" />
<el-button type="primary" @click="onResetPass">重置密码</el-button>
<el-button type="danger" @click="onDel">批量删除</el-button>
</div>
@ -337,12 +330,11 @@ onMounted(() => {
/>
</template>
</el-table-column>
<el-table-column prop="name" label="姓名" />
<el-table-column prop="number" label="学号" width="120" />
<el-table-column prop="sex" label="性别" />
<el-table-column prop="name" label="姓名" />
<el-table-column prop="username" label="用户名" />
<el-table-column prop="nickName" label="昵称" />
<el-table-column prop="phone" label="手机号" width="120" />
<el-table-column prop="sex" label="性别" />
<el-table-column prop="major" label="专业" />
<el-table-column prop="yearAge" label="年级" />
<el-table-column prop="createTime" label="创建时间" width="200" />
@ -395,68 +387,9 @@ onMounted(() => {
/>
</div>
</el-card>
<el-drawer v-model="drawer" title="编辑信息" style="">
<el-form :model="tableData" :rules="rules" ref="formRef">
<el-form-item label="头像" prop="icon">
<el-upload
v-model="tableData.icon"
class="avatar-uploader"
:http-request="upload"
:show-file-list="false"
>
<img v-if="imageUrl" :src="imageUrl" class="avatar" />
<el-icon v-else class="avatar-uploader-icon"><Plus /></el-icon>
<template #tip>
<div class="el-upload__tip">
图片文件要为jpg/png格式小于500kb
</div>
</template>
</el-upload>
</el-form-item>
<el-form-item label="姓名" prop="name">
<el-input v-model="tableData.name" placeholder="请输入姓名" />
</el-form-item>
<el-form-item label="学号" prop="number">
<el-input v-model="tableData.number" placeholder="请输入学号" />
</el-form-item>
<el-form-item label="性别" prop="sex">
<el-radio-group v-model="tableData.sex">
<el-radio value="1"></el-radio>
<el-radio value="2"></el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="姓名" prop="username">
<el-input v-model="tableData.username" placeholder="请输入姓名" />
</el-form-item>
<el-form-item label="用户名" prop="nickName">
<el-input v-model="tableData.nickName" />
</el-form-item>
<el-form-item label="昵称" prop="nickName">
<el-input v-model="tableData.nickName" />
</el-form-item>
<el-form-item label="手机号" prop="phone">
<el-input v-model="tableData.phone" />
</el-form-item>
<el-form-item label="专业" prop="major">
<el-input v-model="tableData.major" placeholder="请输入专业" />
</el-form-item>
<el-form-item label="年级" prop="yearAge">
<el-input v-model="tableData.yearAge" placeholder="请输入年级" />
</el-form-item>
<el-form-item label="创建时间" prop="createTime">
<el-input v-model="tableData.createTime" />
</el-form-item>
<el-form-item label="状态" prop="status">
<el-switch
v-model="tableData.status"
inline-prompt
active-text="启用"
inactive-text="禁用"
/>
<!-- <el-input v-model="tableData.status" placeholder="请输入姓名" /> -->
</el-form-item>
</el-form>
</el-drawer>
<!-- <edit-stu ref="stuChange"></edit-stu> -->
<edit-stu ref="stuChange" @success="onSuccess()"></edit-stu>
</page-container>
</template>

Loading…
Cancel
Save