Quellcode durchsuchen

修复用户管理编辑用户时浏览器卡死的问题

liyanyan vor 2 Wochen
Ursprung
Commit
e05f035abd
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      src/views/user/list/index.vue

+ 2 - 2
src/views/user/list/index.vue

@@ -264,7 +264,7 @@ export default {
         if (Object.keys(p.list).length) {
           for (const key in p.list) {
             this.deportments.push({
-              id: parseInt(key),
+              id: key,
               name: p.list[key]
             })
           }
@@ -323,7 +323,7 @@ export default {
       // this.alertForm.account = data.account
       this.alertForm.name = data.name
       this.alertForm.group_id = parseInt(data.group_id)
-      this.alertForm.dep_id = data.dep_id ? parseInt(data.dep_id) : ''
+      this.alertForm.dep_id = data.dep_id ? data.dep_id[0] : ''
       this.alertForm.desc = data.desc
       this.alertForm.phone = data.phone
       this.alertForm.realname = data.realname