正在显示
1 个修改的文件
包含
14 行增加
和
4 行删除
| @@ -192,7 +192,7 @@ | @@ -192,7 +192,7 @@ | ||
| 192 | </el-dialog> | 192 | </el-dialog> |
| 193 | 193 | ||
| 194 | <!--权限设置--> | 194 | <!--权限设置--> |
| 195 | - <el-dialog title="权限设置" :visible.sync="roleFormVisible" :close-on-click-modal="false"> | 195 | + <el-dialog title="权限设置" :visible.sync="roleFormVisible" :close-on-click-modal="false" class="roleDialog"> |
| 196 | <el-form :model="roleEditForm" label-width="80px" ref="roleEditForm" > | 196 | <el-form :model="roleEditForm" label-width="80px" ref="roleEditForm" > |
| 197 | <el-form-item label="ID"> | 197 | <el-form-item label="ID"> |
| 198 | <span>{{roleEditForm.userId}}</span> | 198 | <span>{{roleEditForm.userId}}</span> |
| @@ -398,10 +398,18 @@ | @@ -398,10 +398,18 @@ | ||
| 398 | pageNum: 1, | 398 | pageNum: 1, |
| 399 | pageSize: 100 | 399 | pageSize: 100 |
| 400 | }; | 400 | }; |
| 401 | - NProgress.start(); | 401 | + let ld = this.$loading({ |
| 402 | + text:"加载中...", | ||
| 403 | + target:".roleDialog" | ||
| 404 | + }) | ||
| 405 | + // 解决bug loading显示在弹窗下面!!!! | ||
| 406 | + setTimeout(() => { | ||
| 407 | + this.$nextTick(() => { | ||
| 408 | + document.querySelector(".el-loading-mask").style.zIndex = "999999"; | ||
| 409 | + }); | ||
| 410 | + }); | ||
| 402 | getList(para).then((res) => { | 411 | getList(para).then((res) => { |
| 403 | this.roles = res.data.list; | 412 | this.roles = res.data.list; |
| 404 | - NProgress.done(); | ||
| 405 | }).catch((error) => { | 413 | }).catch((error) => { |
| 406 | if(null!= error.response && error.response!==undefined){ | 414 | if(null!= error.response && error.response!==undefined){ |
| 407 | let status= error.response.status; | 415 | let status= error.response.status; |
| @@ -410,7 +418,9 @@ | @@ -410,7 +418,9 @@ | ||
| 410 | }else { | 418 | }else { |
| 411 | alert(error); | 419 | alert(error); |
| 412 | } | 420 | } |
| 413 | - }); | 421 | + }).finally(() =>{ |
| 422 | + ld.close() | ||
| 423 | + }); | ||
| 414 | 424 | ||
| 415 | 425 | ||
| 416 | }, | 426 | }, |
-
请 注册 或 登录 后发表评论