Showing
2 changed files
with
4 additions
and
4 deletions
| ... | @@ -153,11 +153,11 @@ export default { | ... | @@ -153,11 +153,11 @@ export default { |
| 153 | }); | 153 | }); |
| 154 | }, | 154 | }, |
| 155 | //用户详情 | 155 | //用户详情 |
| 156 | - userDetail(id) { | 156 | + userDetail(status, id) { |
| 157 | detailUser(id) | 157 | detailUser(id) |
| 158 | .then((res) => { | 158 | .then((res) => { |
| 159 | this.drawer = true; | 159 | this.drawer = true; |
| 160 | - this.drawerTitle = "修改用户"; | 160 | + this.drawerTitle = status == 0 ? "查看用户" : "修改用户"; |
| 161 | if (res.code === 200) { | 161 | if (res.code === 200) { |
| 162 | this.userData = res.data; | 162 | this.userData = res.data; |
| 163 | this.userData.portName | 163 | this.userData.portName |
| ... | @@ -180,7 +180,7 @@ export default { | ... | @@ -180,7 +180,7 @@ export default { |
| 180 | }, | 180 | }, |
| 181 | //查询修改用户 | 181 | //查询修改用户 |
| 182 | buttonClick(row, status) { | 182 | buttonClick(row, status) { |
| 183 | - this.userDetail(row.row.id); | 183 | + this.userDetail(status, row.row.id); |
| 184 | status == 0 | 184 | status == 0 |
| 185 | ? (this.userFormDisabled = true) | 185 | ? (this.userFormDisabled = true) |
| 186 | : (this.userFormDisabled = false); | 186 | : (this.userFormDisabled = false); | ... | ... |
-
Please register or login to post a comment