From f034175e69ab511c253e47b6a3882af4ba329e6d Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期一, 27 五月 2024 14:19:55 +0800
Subject: [PATCH] 路由名字调整、导出题目增加loading

---
 src/views/user/student/edit.vue |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/views/user/student/edit.vue b/src/views/user/student/edit.vue
index 4d97bbb..9e8ac24 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,7 +26,7 @@
         <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="閮ㄩ棬">
           <el-option v-for="item in depts" :key="item.id" :value="item.id" :label="item.name"></el-option>
         </el-select>
       </el-form-item>
@@ -70,7 +70,7 @@
         sex: '',
         birthDay: null,
         phone: null,
-        deptIds: '',
+        deptIds: [],
         tagIds: []
       },
       formLoading: false,
@@ -133,7 +133,6 @@
       this.$refs.form.validate((valid) => {
         if (valid) {
           this.formLoading = true
-          this.form.deptIds = this.form.deptIds.join(',')
           userApi.createUser(this.form).then(data => {
             if (data.code === 1) {
               _this.$message.success(data.message)

--
Gitblit v1.8.0