Przeglądaj źródła

修改所属架构

tangning 3 lat temu
rodzic
commit
556fa221e9
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      src/view/user/index.vue

+ 3 - 1
src/view/user/index.vue

@@ -217,10 +217,12 @@ export default {
       if (!row.status) {
         return getApp().$message.error("请先启用用户", "提示");
       }
+      let deptIdList = row.deptIdList&&row.deptIdList.split(',') || []
+      deptIdList.push(row.deptId)
       data.editData = {
         editName:row.nickName,
         roleId:row.roleId,
-        deptIdList:row.deptIdList&&row.deptIdList.split(','),
+        deptIdList:deptIdList,
       }
       console.log('updateInfo',row,data.editData)
       data.relationDeptId = row.deptId