From eae62f5e1c79695a51fc487c6db9f28e2bcbeb9d Mon Sep 17 00:00:00 2001 From: 龚焕茏 <2842157468@qq.com> Date: 星期二, 16 七月 2024 09:08:05 +0800 Subject: [PATCH] feat:补考保留最高分 --- src/views/user/student/edit.vue | 15 +++++++++++---- 1 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/views/user/student/edit.vue b/src/views/user/student/edit.vue index 63bd6e3..ec30e33 100644 --- a/src/views/user/student/edit.vue +++ b/src/views/user/student/edit.vue @@ -6,7 +6,7 @@ <el-input v-model="form.userName"></el-input> </el-form-item> <el-form-item label="瀵嗙爜锛�" required> - <el-input v-model="form.password"></el-input> + <el-input v-model="form.password" type="password"></el-input> </el-form-item> <el-form-item label="鐪熷疄濮撳悕锛�" prop="realName" required> <el-input v-model="form.realName"></el-input> @@ -26,9 +26,16 @@ <el-input v-model="form.phone"></el-input> </el-form-item> <el-form-item label="閮ㄩ棬锛�" prop="deptIds" required> - <el-select v-model="form.deptIds" collapse-tags placeholder="閮ㄩ棬"> + <!-- <el-select v-model="form.deptIds" multiple collapse-tags placeholder="閮ㄩ棬" :disabled="this.$route.query.id"> <el-option v-for="item in depts" :key="item.id" :value="item.id" :label="item.name"></el-option> - </el-select> + </el-select> --> + <el-cascader + clearable + :disabled="this.$route.query.id" + v-model="form.deptIds" + :options="depts" + :props="{ emitPath: false, multiple: true, value: 'id', label: 'name', checkStrictly: true }" + ></el-cascader> </el-form-item> <el-form-item label="鏍囩锛�" prop="tagIds"> <el-select v-model="form.tagIds" multiple collapse-tags placeholder="鏍囩"> @@ -70,7 +77,7 @@ sex: '', birthDay: null, phone: null, - deptIds: '', + deptIds: [], tagIds: [] }, formLoading: false, -- Gitblit v1.8.0