正在显示
4 个修改的文件
包含
8 行增加
和
8 行删除
| @@ -17,9 +17,9 @@ | @@ -17,9 +17,9 @@ | ||
| 17 | 17 | ||
| 18 | <!--列表--> | 18 | <!--列表--> |
| 19 | <el-table :data="tableList" highlight-current-row v-loading="listLoading" @selection-change="selsChange" style="width: 100%;" | 19 | <el-table :data="tableList" highlight-current-row v-loading="listLoading" @selection-change="selsChange" style="width: 100%;" |
| 20 | - row-key="permissionId" | ||
| 21 | - border | ||
| 22 | - :tree-props="{children: 'children', hasChildren: 'hasChildren'}" | 20 | + row-key="permissionId" |
| 21 | + border | ||
| 22 | + :tree-props="{children: 'children', hasChildren: 'hasChildren'}" | ||
| 23 | > | 23 | > |
| 24 | <el-table-column type="selection" width="55"> | 24 | <el-table-column type="selection" width="55"> |
| 25 | </el-table-column> | 25 | </el-table-column> |
| @@ -19,11 +19,11 @@ | @@ -19,11 +19,11 @@ | ||
| 19 | </el-col> | 19 | </el-col> |
| 20 | 20 | ||
| 21 | <!--列表--> | 21 | <!--列表--> |
| 22 | - <el-table :data="users" highlight-current-row v-loading="listLoading" @selection-change="selsChange" style="width: 100%;"> | 22 | + <el-table :data="users" highlight-current-row border v-loading="listLoading" @selection-change="selsChange" style="width: 100%;"> |
| 23 | <el-table-column type="selection" width="55"> | 23 | <el-table-column type="selection" width="55"> |
| 24 | </el-table-column> | 24 | </el-table-column> |
| 25 | - <el-table-column type="index" width="60"> | ||
| 26 | - </el-table-column> | 25 | + <!--<el-table-column type="index" width="60">--> |
| 26 | + <!--</el-table-column>--> | ||
| 27 | <el-table-column prop="userId" label="ID" width="100" sortable> | 27 | <el-table-column prop="userId" label="ID" width="100" sortable> |
| 28 | </el-table-column> | 28 | </el-table-column> |
| 29 | <el-table-column prop="username" label="账号" width="120" sortable> | 29 | <el-table-column prop="username" label="账号" width="120" sortable> |
| @@ -168,7 +168,7 @@ | @@ -168,7 +168,7 @@ | ||
| 168 | <el-form-item label="账号"> | 168 | <el-form-item label="账号"> |
| 169 | <span>{{roleEditForm.username}}</span> | 169 | <span>{{roleEditForm.username}}</span> |
| 170 | </el-form-item> | 170 | </el-form-item> |
| 171 | - <el-tree :data="roles" :props="treeDefaultProps" show-checkbox highlight-current check-strictly node-key="roleId" ref="tree" @check-change="treeHandleCheckChange"> | 171 | + <el-tree :data="roles" :props="treeDefaultProps" default-expand-all show-checkbox highlight-current check-strictly node-key="roleId" ref="tree" @check-change="treeHandleCheckChange"> |
| 172 | </el-tree> | 172 | </el-tree> |
| 173 | </el-form> | 173 | </el-form> |
| 174 | 174 | ||
| @@ -467,7 +467,7 @@ | @@ -467,7 +467,7 @@ | ||
| 467 | this.$confirm('确认提交吗?', '提示', {}).then(() => { | 467 | this.$confirm('确认提交吗?', '提示', {}).then(() => { |
| 468 | // this.editLoading = true; | 468 | // this.editLoading = true; |
| 469 | let userId = this.roleEditForm.userId; | 469 | let userId = this.roleEditForm.userId; |
| 470 | - let roleIds = this.roleIds; | 470 | + let roleIds = this.$refs.tree.getCheckedKeys(); |
| 471 | let para = {userId,roleIds}; | 471 | let para = {userId,roleIds}; |
| 472 | setUserRole(para).then((res) => { | 472 | setUserRole(para).then((res) => { |
| 473 | if (res.status ===200) { | 473 | if (res.status ===200) { |
static/favicon.ico
100755 → 100644
不能预览此文件类型
static/favicon.ico.bal
0 → 100755
不能预览此文件类型
-
请 注册 或 登录 后发表评论