提交
This commit is contained in:
parent
85480e07a3
commit
c7af3f4207
|
|
@ -17,6 +17,7 @@ const useUserStore = defineStore(
|
||||||
avatar: '',
|
avatar: '',
|
||||||
phoneNumber: '',
|
phoneNumber: '',
|
||||||
dataScopeDeptId: '',
|
dataScopeDeptId: '',
|
||||||
|
dataScopeDeptName: '',
|
||||||
roles: [],
|
roles: [],
|
||||||
permissions: []
|
permissions: []
|
||||||
}),
|
}),
|
||||||
|
|
@ -58,7 +59,8 @@ const useUserStore = defineStore(
|
||||||
this.userName = user.userName
|
this.userName = user.userName
|
||||||
this.avatar = avatar
|
this.avatar = avatar
|
||||||
this.phoneNumber = user.phonenumber
|
this.phoneNumber = user.phonenumber
|
||||||
this.dataScopeDeptId = user.deptId
|
this.dataScopeDeptId = user.dept.deptId
|
||||||
|
this.dataScopeDeptName = user.dept.deptName
|
||||||
/* 初始密码提示 */
|
/* 初始密码提示 */
|
||||||
if(res.isDefaultModifyPwd) {
|
if(res.isDefaultModifyPwd) {
|
||||||
ElMessageBox.confirm('您的密码还是初始密码,请修改密码!', '安全提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => {
|
ElMessageBox.confirm('您的密码还是初始密码,请修改密码!', '安全提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => {
|
||||||
|
|
|
||||||
|
|
@ -559,7 +559,7 @@ import { sysMediaTypeListByPid } from "@/api/system/mediaType"
|
||||||
import { listDept } from "@/api/system/dept"
|
import { listDept } from "@/api/system/dept"
|
||||||
import { busTradingAreaPage, addBusTradingArea } from "@/api/system/businessArea"
|
import { busTradingAreaPage, addBusTradingArea } from "@/api/system/businessArea"
|
||||||
import { addMedia, updateMedia, mediaDetail } from "@/api/mediaLibrary"
|
import { addMedia, updateMedia, mediaDetail } from "@/api/mediaLibrary"
|
||||||
|
|
||||||
import multiFileUpload from '../../components/FileUpload/multiFileUpload.vue'
|
import multiFileUpload from '../../components/FileUpload/multiFileUpload.vue'
|
||||||
import pickLat from './pickLat.vue'
|
import pickLat from './pickLat.vue'
|
||||||
import competitiveOffer from './components/competitiveOffer.vue'
|
import competitiveOffer from './components/competitiveOffer.vue'
|
||||||
|
|
@ -570,6 +570,10 @@ import subwayPrice from './components/subwayPrice.vue'
|
||||||
import highSpeedRailway from './components/highSpeedRailway.vue'
|
import highSpeedRailway from './components/highSpeedRailway.vue'
|
||||||
import officeBuilding from './components/officeBuilding.vue'
|
import officeBuilding from './components/officeBuilding.vue'
|
||||||
import garageLightBox from './components/garageLightBox.vue'
|
import garageLightBox from './components/garageLightBox.vue'
|
||||||
|
import useUserStore from '@/store/modules/user'
|
||||||
|
const userStore = useUserStore()
|
||||||
|
|
||||||
|
console.log('登陆人', userStore)
|
||||||
|
|
||||||
const { proxy } = getCurrentInstance()
|
const { proxy } = getCurrentInstance()
|
||||||
const emit = defineEmits(['handleShowList']);
|
const emit = defineEmits(['handleShowList']);
|
||||||
|
|
@ -769,6 +773,8 @@ const onAddSupplierOption = () => {
|
||||||
const onSupplierConfirm = () => {
|
const onSupplierConfirm = () => {
|
||||||
if (addSupplierName.value) {
|
if (addSupplierName.value) {
|
||||||
const paramsForm = {
|
const paramsForm = {
|
||||||
|
yewuDept: userStore.dataScopeDeptName,
|
||||||
|
yewuDeptId: userStore.dataScopeDeptId,
|
||||||
supplierName: addSupplierName.value
|
supplierName: addSupplierName.value
|
||||||
}
|
}
|
||||||
addBusSupplier(paramsForm).then(response => {
|
addBusSupplier(paramsForm).then(response => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user