From 8c3eaeddeff2c9c5a92352e6bf830e5000ff5882 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期二, 03 十二月 2024 12:16:11 +0800 Subject: [PATCH] 附件最多上传10个 --- src/views/user/student/edit.vue | 18 +++++++++++------- 1 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/views/user/student/edit.vue b/src/views/user/student/edit.vue index 63bd6e3..35b252e 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, @@ -83,9 +90,6 @@ ], deptIds: [ { required: true, message: '璇烽�夋嫨閮ㄩ棬', trigger: 'change' } - ], - birthDay: [ - { required: true, message: '璇烽�夋嫨鍑虹敓鏃ユ湡', trigger: 'blur' } ] } } -- Gitblit v1.8.0