更新
This commit is contained in:
parent
f68efe6a96
commit
51635013b1
@ -51,6 +51,7 @@ import Screenfull from '@/components/Screenfull'
|
|||||||
import SizeSelect from '@/components/SizeSelect'
|
import SizeSelect from '@/components/SizeSelect'
|
||||||
import Search from '@/components/HeaderSearch'
|
import Search from '@/components/HeaderSearch'
|
||||||
import NotifyMessage from '@/layout/components/Message'
|
import NotifyMessage from '@/layout/components/Message'
|
||||||
|
import { getUserProfile } from "@/api/system/user";
|
||||||
import {getPath} from "@/utils/ruoyi";
|
import {getPath} from "@/utils/ruoyi";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@ -67,7 +68,6 @@ export default {
|
|||||||
...mapGetters([
|
...mapGetters([
|
||||||
'sidebar',
|
'sidebar',
|
||||||
'avatar',
|
'avatar',
|
||||||
'nickname',
|
|
||||||
'device'
|
'device'
|
||||||
]),
|
]),
|
||||||
setting: {
|
setting: {
|
||||||
@ -87,6 +87,16 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
nickname: ''
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
getUserProfile().then(response => {
|
||||||
|
this.nickname = response.data.nickname;
|
||||||
|
});
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
toggleSideBar() {
|
toggleSideBar() {
|
||||||
this.$store.dispatch('app/toggleSideBar')
|
this.$store.dispatch('app/toggleSideBar')
|
||||||
|
@ -68,10 +68,6 @@ const warehouseStorehouseStorageState = [
|
|||||||
name: '出库',
|
name: '出库',
|
||||||
id: 1,
|
id: 1,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name: '移库',
|
|
||||||
id: 2,
|
|
||||||
},
|
|
||||||
];
|
];
|
||||||
export default {
|
export default {
|
||||||
mixins: [basicPage],
|
mixins: [basicPage],
|
||||||
|
@ -207,9 +207,9 @@
|
|||||||
<el-select v-model="form.roleIds" multiple placeholder="请选择">
|
<el-select v-model="form.roleIds" multiple placeholder="请选择">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in roleOptions"
|
v-for="item in roleOptions"
|
||||||
:key="parseInt(item.id)"
|
:key="item.id"
|
||||||
:label="item.name"
|
:label="item.name"
|
||||||
:value="parseInt(item.id)"
|
:value="item.id"
|
||||||
></el-option>
|
></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -549,6 +549,7 @@ export default {
|
|||||||
/** 提交按钮(角色权限) */
|
/** 提交按钮(角色权限) */
|
||||||
submitRole: function() {
|
submitRole: function() {
|
||||||
if (this.form.id !== undefined) {
|
if (this.form.id !== undefined) {
|
||||||
|
console.log(this.form.roleIds)
|
||||||
assignUserRole({
|
assignUserRole({
|
||||||
userId: this.form.id,
|
userId: this.form.id,
|
||||||
roleIds: this.form.roleIds,
|
roleIds: this.form.roleIds,
|
||||||
|
Loading…
Reference in New Issue
Block a user