This commit is contained in:
wangchengming 2025-12-12 13:57:30 +08:00
parent 85480e07a3
commit c7af3f4207
2 changed files with 10 additions and 2 deletions

View File

@ -17,6 +17,7 @@ const useUserStore = defineStore(
avatar: '',
phoneNumber: '',
dataScopeDeptId: '',
dataScopeDeptName: '',
roles: [],
permissions: []
}),
@ -58,7 +59,8 @@ const useUserStore = defineStore(
this.userName = user.userName
this.avatar = avatar
this.phoneNumber = user.phonenumber
this.dataScopeDeptId = user.deptId
this.dataScopeDeptId = user.dept.deptId
this.dataScopeDeptName = user.dept.deptName
/* 初始密码提示 */
if(res.isDefaultModifyPwd) {
ElMessageBox.confirm('您的密码还是初始密码,请修改密码!', '安全提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => {

View File

@ -570,6 +570,10 @@ import subwayPrice from './components/subwayPrice.vue'
import highSpeedRailway from './components/highSpeedRailway.vue'
import officeBuilding from './components/officeBuilding.vue'
import garageLightBox from './components/garageLightBox.vue'
import useUserStore from '@/store/modules/user'
const userStore = useUserStore()
console.log('登陆人', userStore)
const { proxy } = getCurrentInstance()
const emit = defineEmits(['handleShowList']);
@ -769,6 +773,8 @@ const onAddSupplierOption = () => {
const onSupplierConfirm = () => {
if (addSupplierName.value) {
const paramsForm = {
yewuDept: userStore.dataScopeDeptName,
yewuDeptId: userStore.dataScopeDeptId,
supplierName: addSupplierName.value
}
addBusSupplier(paramsForm).then(response => {