mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-13 23:20:12 +08:00
Add corporate branding image support
This commit is contained in:
parent
4754cd82c3
commit
d55dbb1bab
@ -96,7 +96,7 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
organizationImagePath() {
|
organizationImagePath() {
|
||||||
return this.$store.getters.avatar
|
return this.$store.getters.corporateBrandingImage
|
||||||
},
|
},
|
||||||
defaultImage() {
|
defaultImage() {
|
||||||
return require('@/image/ADempiere/priceChecking/no-image.jpg')
|
return require('@/image/ADempiere/priceChecking/no-image.jpg')
|
||||||
|
@ -8,6 +8,7 @@ const getters = {
|
|||||||
cachedViews: state => state.tagsView.cachedViews,
|
cachedViews: state => state.tagsView.cachedViews,
|
||||||
token: state => state.user.token,
|
token: state => state.user.token,
|
||||||
avatar: state => state.user.avatar,
|
avatar: state => state.user.avatar,
|
||||||
|
corporateBrandingImage: state => state.user.corporateBrandingImage,
|
||||||
name: state => state.user.name,
|
name: state => state.user.name,
|
||||||
router: state => state.permission.addRoutes,
|
router: state => state.permission.addRoutes,
|
||||||
introduction: state => state.user.introduction,
|
introduction: state => state.user.introduction,
|
||||||
|
@ -45,7 +45,8 @@ const state = {
|
|||||||
warehousesList: [],
|
warehousesList: [],
|
||||||
warehouse: {},
|
warehouse: {},
|
||||||
isSession: false,
|
isSession: false,
|
||||||
sessionInfo: {}
|
sessionInfo: {},
|
||||||
|
corporateBrandingImage: ''
|
||||||
}
|
}
|
||||||
|
|
||||||
const mutations = {
|
const mutations = {
|
||||||
@ -72,6 +73,9 @@ const mutations = {
|
|||||||
},
|
},
|
||||||
SET_ORGANIZATION: (state, organization) => {
|
SET_ORGANIZATION: (state, organization) => {
|
||||||
state.organization = organization
|
state.organization = organization
|
||||||
|
if (organization) {
|
||||||
|
state.corporateBrandingImage = organization.corporateBrandingImage
|
||||||
|
}
|
||||||
},
|
},
|
||||||
SET_WAREHOUSES_LIST: (state, payload) => {
|
SET_WAREHOUSES_LIST: (state, payload) => {
|
||||||
state.warehousesList = payload
|
state.warehousesList = payload
|
||||||
|
@ -61,20 +61,21 @@ export function convertCriteria(criteriaToConvert) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export function convertOrganization(organizationToConvert) {
|
export function convertOrganization(organization) {
|
||||||
const { id, uuid, name, description } = organizationToConvert
|
const { id, uuid, name, description } = organization
|
||||||
|
|
||||||
return {
|
return {
|
||||||
id,
|
id,
|
||||||
uuid,
|
uuid,
|
||||||
name,
|
name,
|
||||||
description,
|
description,
|
||||||
isReadOnly: organizationToConvert.is_read_only,
|
isReadOnly: organization.is_read_only,
|
||||||
duns: organizationToConvert.duns,
|
duns: organization.duns,
|
||||||
taxId: organizationToConvert.tax_id,
|
taxId: organization.tax_id,
|
||||||
phone: organizationToConvert.phone,
|
phone: organization.phone,
|
||||||
phone2: organizationToConvert.phone2,
|
phone2: organization.phone2,
|
||||||
fax: organizationToConvert.fax
|
fax: organization.fax,
|
||||||
|
corporateBrandingImage: organization.corporate_branding_image
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user