Browse Source

【接口看板+store+job】角色页面优化开发

faster_AG_grid
安虹睿 1 year ago
parent
commit
a0e83ade63
  1. 4
      PC/InterFace.Dash/src/views/menuList/AbpIdentityMarkRoles.vue
  2. 31
      PC/UI.WinIn.FasterZ.Job/src/views/menuList/AbpIdentityMarkRoles.vue
  3. 4
      PC/UI.WinIn.FasterZ.Store/src/views/menuList/AbpIdentityMarkRoles.vue

4
PC/InterFace.Dash/src/views/menuList/AbpIdentityMarkRoles.vue

@ -413,8 +413,8 @@ export default {
duration: 2000, duration: 2000,
}); });
this.treeLoading = false; this.treeLoading = false;
// //
if(this.multipleSelection[0].name == this.$store.getters.currentUserInfo.name){ if(this.$store.getters.currentUserInfo.roles.indexOf(this.multipleSelection[0].name) >= 0){
location.reload() location.reload()
} }
}).catch(()=>{ }).catch(()=>{

31
PC/UI.WinIn.FasterZ.Job/src/views/menuList/AbpIdentityMarkRoles.vue

@ -149,9 +149,9 @@
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
<script> <script>
import { import {
getPageListRoles, getPageListRoles,
getPermissionsRoles, getPermissionsRoles,
savePermissionsRoles, savePermissionsRoles,
@ -159,10 +159,10 @@
postCreateRoles, postCreateRoles,
postUpdateRoles, postUpdateRoles,
postDeleteRoles, postDeleteRoles,
} from "@/api/wms-auth"; } from "@/api/wms-auth";
import permission from "@/utils/permission/index"; import permission from "@/utils/permission/index";
import searchNormal from "@/components/searchNormal/index.vue" import searchNormal from "@/components/searchNormal/index.vue"
export default { export default {
directives: { permission }, directives: { permission },
components:{ components:{
searchNormal searchNormal
@ -413,8 +413,8 @@
duration: 2000, duration: 2000,
}); });
this.treeLoading = false; this.treeLoading = false;
// //
if(this.multipleSelection[0].name == this.$store.getters.currentUserInfo.name){ if(this.$store.getters.currentUserInfo.roles.indexOf(this.multipleSelection[0].name) >= 0){
location.reload() location.reload()
} }
}).catch(()=>{ }).catch(()=>{
@ -490,10 +490,10 @@
}) })
}, },
}, },
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.appMainPage { .appMainPage {
padding: 20px; padding: 20px;
.main { .main {
@ -542,7 +542,6 @@
height: calc(100vh - 260px); height: calc(100vh - 260px);
overflow-y: auto; overflow-y: auto;
} }
} }
</style> </style>

4
PC/UI.WinIn.FasterZ.Store/src/views/menuList/AbpIdentityMarkRoles.vue

@ -413,8 +413,8 @@ export default {
duration: 2000, duration: 2000,
}); });
this.treeLoading = false; this.treeLoading = false;
// //
if(this.multipleSelection[0].name == this.$store.getters.currentUserInfo.name){ if(this.$store.getters.currentUserInfo.roles.indexOf(this.multipleSelection[0].name) >= 0){
location.reload() location.reload()
} }
}).catch(()=>{ }).catch(()=>{

Loading…
Cancel
Save