chris 4 tahun lalu
induk
melakukan
b00d9fe0c2

+ 4 - 1
src/views/modules/sys/role-add-or-update.vue

@@ -131,10 +131,13 @@
                   })
                 }
                 if (data.data.orgIdList) {
+                  // console.log('orgIdList = ' + data.data.orgIdList)
                   data.data.orgIdList.forEach(i => {
                     const node = this.$refs.orgListData.getNode(i)
+                    // console.log('i = ' + i)
+                    // console.log('node.isLeaf = ' + node.isLeaf)
                     if (node.isLeaf) {
-                      this.$refs.orgListData.setChecked(node, true)
+                      this.$refs.orgListData.setChecked(node, true, false)
                     }
                   })
                 }

+ 4 - 0
src/views/modules/sys/user.vue

@@ -36,6 +36,7 @@
         prop="username"
         header-align="center"
         align="center"
+        min-width="100"
         label="用户名">
       </el-table-column>
       <el-table-column
@@ -48,18 +49,21 @@
         prop="orgName"
         header-align="center"
         align="center"
+        min-width="100"
         label="所属机构">
       </el-table-column>
       <el-table-column
         prop="mobile"
         header-align="center"
         align="center"
+        min-width="120"
         label="手机号">
       </el-table-column>
       <el-table-column
         prop="email"
         header-align="center"
         align="center"
+        min-width="120"
         label="邮箱">
       </el-table-column>
       <el-table-column