更新
This commit is contained in:
parent
f68efe6a96
commit
51635013b1
@ -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')
|
||||
|
@ -68,10 +68,6 @@ const warehouseStorehouseStorageState = [
|
||||
name: '出库',
|
||||
id: 1,
|
||||
},
|
||||
{
|
||||
name: '移库',
|
||||
id: 2,
|
||||
},
|
||||
];
|
||||
export default {
|
||||
mixins: [basicPage],
|
||||
|
@ -207,9 +207,9 @@
|
||||
<el-select v-model="form.roleIds" multiple placeholder="请选择">
|
||||
<el-option
|
||||
v-for="item in roleOptions"
|
||||
:key="parseInt(item.id)"
|
||||
:key="item.id"
|
||||
:label="item.name"
|
||||
:value="parseInt(item.id)"
|
||||
:value="item.id"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user