diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 5ad48d2..8e2f8ba 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -51,6 +51,7 @@ import Screenfull from '@/components/Screenfull' import SizeSelect from '@/components/SizeSelect' import Search from '@/components/HeaderSearch' import NotifyMessage from '@/layout/components/Message' +import { getUserProfile } from "@/api/system/user"; import {getPath} from "@/utils/ruoyi"; export default { @@ -67,7 +68,6 @@ export default { ...mapGetters([ 'sidebar', 'avatar', - 'nickname', 'device' ]), setting: { @@ -87,6 +87,16 @@ export default { } } }, + data() { + return { + nickname: '' + }; + }, + created() { + getUserProfile().then(response => { + this.nickname = response.data.nickname; + }); + }, methods: { toggleSideBar() { this.$store.dispatch('app/toggleSideBar') diff --git a/src/views/fpw/finishWarehouseStorehouseStorageHistory/index.vue b/src/views/fpw/finishWarehouseStorehouseStorageHistory/index.vue index ed33956..1f7dbe6 100644 --- a/src/views/fpw/finishWarehouseStorehouseStorageHistory/index.vue +++ b/src/views/fpw/finishWarehouseStorehouseStorageHistory/index.vue @@ -68,10 +68,6 @@ const warehouseStorehouseStorageState = [ name: '出库', id: 1, }, - { - name: '移库', - id: 2, - }, ]; export default { mixins: [basicPage], diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index 1ad8996..4f69fa5 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -207,9 +207,9 @@ @@ -549,6 +549,7 @@ export default { /** 提交按钮(角色权限) */ submitRole: function() { if (this.form.id !== undefined) { + console.log(this.form.roleIds) assignUserRole({ userId: this.form.id, roleIds: this.form.roleIds,