diff --git a/src/views/exam/student/StudentForm.vue b/src/views/exam/student/StudentForm.vue
index 17861ee..3cd98f3 100644
--- a/src/views/exam/student/StudentForm.vue
+++ b/src/views/exam/student/StudentForm.vue
@@ -40,8 +40,8 @@
-
-
+
+
@@ -74,11 +74,8 @@
/>
-
-
-
-
+
@@ -94,7 +91,6 @@
-
确 定
@@ -111,11 +107,11 @@ import * as DeptApi from '@/api/system/dept'
import * as UserApi from '@/api/system/user'
import * as ClassApi from '@/api/exam/class'
import { FormRules } from 'element-plus'
-import {updateStudent} from "@/api/system/user";
+import { updateStudent } from '@/api/system/user'
defineOptions({ name: 'SystemUserForm' })
-const classNameList = ref();
+const classNameList = ref()
const { t } = useI18n() // 国际化
const message = useMessage() // 消息弹窗
@@ -131,7 +127,7 @@ const formData = ref({
className: '',
mobile: '',
email: '',
- sfz:'',
+ sfz: '',
id: undefined,
username: '',
password: '',
@@ -139,6 +135,7 @@ const formData = ref({
postIds: [],
remark: '',
avatar: '',
+ schoolName: '',
status: CommonStatusEnum.ENABLE,
roleIds: []
})
@@ -182,7 +179,7 @@ const submitForm = async () => {
// 校验表单
if (!formRef) return
const valid = await formRef.value.validate()
- formData.value.userType = "2"
+ formData.value.userType = '2'
if (!valid) return
// 提交请求
formLoading.value = true
@@ -206,16 +203,21 @@ const submitForm = async () => {
/** 重置表单 */
const resetForm = () => {
formData.value = {
+ userType: '',
nickname: '',
deptId: '',
+ className: '',
mobile: '',
email: '',
+ sfz: '',
id: undefined,
username: '',
password: '',
sex: undefined,
postIds: [],
remark: '',
+ avatar: '',
+ schoolName: '',
status: CommonStatusEnum.ENABLE,
roleIds: []
}
diff --git a/src/views/exam/student/index.vue b/src/views/exam/student/index.vue
index 342edc3..9acf506 100644
--- a/src/views/exam/student/index.vue
+++ b/src/views/exam/student/index.vue
@@ -108,6 +108,12 @@
prop="className"
:show-overflow-tooltip="true"
/>
+