给系统页头增加公司名称的展示
This commit is contained in:
@@ -12,7 +12,7 @@
|
|||||||
:type="collapsed ? 'menu-fold' : 'menu-unfold'"
|
:type="collapsed ? 'menu-fold' : 'menu-unfold'"
|
||||||
@click="toggle"></a-icon>
|
@click="toggle"></a-icon>
|
||||||
|
|
||||||
<span v-if="device === 'desktop'"></span>
|
<span v-if="device === 'desktop'" class="company-name">{{ companyName }}</span>
|
||||||
<span v-else>{{ systemTitle }}</span>
|
<span v-else>{{ systemTitle }}</span>
|
||||||
|
|
||||||
<user-menu :theme="theme" @searchGlobalHeader="searchGlobalHeader" />
|
<user-menu :theme="theme" @searchGlobalHeader="searchGlobalHeader" />
|
||||||
@@ -45,6 +45,7 @@
|
|||||||
import UserMenu from '../tools/UserMenu'
|
import UserMenu from '../tools/UserMenu'
|
||||||
import SMenu from '../menu/'
|
import SMenu from '../menu/'
|
||||||
import Logo from '../tools/Logo'
|
import Logo from '../tools/Logo'
|
||||||
|
import { getCurrentSystemConfig } from '@/api/api'
|
||||||
|
|
||||||
import { mixin } from '@/utils/mixin.js'
|
import { mixin } from '@/utils/mixin.js'
|
||||||
|
|
||||||
@@ -86,6 +87,7 @@
|
|||||||
return {
|
return {
|
||||||
headerBarFixed: false,
|
headerBarFixed: false,
|
||||||
systemTitle: window.SYS_TITLE,
|
systemTitle: window.SYS_TITLE,
|
||||||
|
companyName: '',
|
||||||
//update-begin--author:sunjianlei---date:20190508------for: 顶部导航栏过长时显示更多按钮-----
|
//update-begin--author:sunjianlei---date:20190508------for: 顶部导航栏过长时显示更多按钮-----
|
||||||
topMenuStyle: {
|
topMenuStyle: {
|
||||||
headerIndexLeft: {},
|
headerIndexLeft: {},
|
||||||
@@ -118,6 +120,9 @@
|
|||||||
}
|
}
|
||||||
//update-end--author:sunjianlei---date:20190508------for: 顶部导航栏过长时显示更多按钮-----
|
//update-end--author:sunjianlei---date:20190508------for: 顶部导航栏过长时显示更多按钮-----
|
||||||
},
|
},
|
||||||
|
created () {
|
||||||
|
this.initSystemConfig()
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleScroll() {
|
handleScroll() {
|
||||||
if (this.autoHideHeader) {
|
if (this.autoHideHeader) {
|
||||||
@@ -154,7 +159,14 @@
|
|||||||
},
|
},
|
||||||
searchGlobalHeader(key, id, title, component){
|
searchGlobalHeader(key, id, title, component){
|
||||||
this.$emit("searchGlobalLayout", key, id, title, component)
|
this.$emit("searchGlobalLayout", key, id, title, component)
|
||||||
|
},
|
||||||
|
initSystemConfig() {
|
||||||
|
getCurrentSystemConfig().then((res) => {
|
||||||
|
if(res.code === 200 && res.data){
|
||||||
|
this.companyName = res.data.companyName
|
||||||
}
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
//update-begin--author:sunjianlei---date:20190508------for: 顶部导航栏过长时显示更多按钮-----
|
//update-begin--author:sunjianlei---date:20190508------for: 顶部导航栏过长时显示更多按钮-----
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -212,6 +224,11 @@
|
|||||||
line-height: @height;
|
line-height: @height;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.company-name {
|
||||||
|
font-size:16px;
|
||||||
|
padding-left:10px
|
||||||
|
}
|
||||||
|
|
||||||
/* update_end author:scott date:20190220 for: 缩小首页布局顶部的高度*/
|
/* update_end author:scott date:20190220 for: 缩小首页布局顶部的高度*/
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
@@ -128,6 +128,7 @@
|
|||||||
// 新增时子表默认添加几行空数据
|
// 新增时子表默认添加几行空数据
|
||||||
addDefaultRowNum: 1,
|
addDefaultRowNum: 1,
|
||||||
visible: false,
|
visible: false,
|
||||||
|
prefixNo: 'SYF',
|
||||||
model: {},
|
model: {},
|
||||||
fileList:[],
|
fileList:[],
|
||||||
labelCol: {
|
labelCol: {
|
||||||
@@ -185,7 +186,7 @@
|
|||||||
editAfter() {
|
editAfter() {
|
||||||
this.billStatus = '0'
|
this.billStatus = '0'
|
||||||
if (this.action === 'add') {
|
if (this.action === 'add') {
|
||||||
this.addInit("SYF")
|
this.addInit(this.prefixNo)
|
||||||
this.fileList = []
|
this.fileList = []
|
||||||
} else {
|
} else {
|
||||||
this.model.billTime = this.model.billTimeStr
|
this.model.billTime = this.model.billTimeStr
|
||||||
|
|||||||
@@ -134,6 +134,7 @@
|
|||||||
// 新增时子表默认添加几行空数据
|
// 新增时子表默认添加几行空数据
|
||||||
addDefaultRowNum: 1,
|
addDefaultRowNum: 1,
|
||||||
visible: false,
|
visible: false,
|
||||||
|
prefixNo: 'ZZ',
|
||||||
model: {},
|
model: {},
|
||||||
fileList:[],
|
fileList:[],
|
||||||
labelCol: {
|
labelCol: {
|
||||||
@@ -196,7 +197,7 @@
|
|||||||
editAfter() {
|
editAfter() {
|
||||||
this.billStatus = '0'
|
this.billStatus = '0'
|
||||||
if (this.action === 'add') {
|
if (this.action === 'add') {
|
||||||
this.addInit("ZZ")
|
this.addInit(this.prefixNo)
|
||||||
this.fileList = []
|
this.fileList = []
|
||||||
} else {
|
} else {
|
||||||
this.model.billTime = this.model.billTimeStr
|
this.model.billTime = this.model.billTimeStr
|
||||||
|
|||||||
@@ -142,6 +142,7 @@
|
|||||||
// 新增时子表默认添加几行空数据
|
// 新增时子表默认添加几行空数据
|
||||||
addDefaultRowNum: 1,
|
addDefaultRowNum: 1,
|
||||||
visible: false,
|
visible: false,
|
||||||
|
prefixNo: 'SR',
|
||||||
model: {},
|
model: {},
|
||||||
fileList:[],
|
fileList:[],
|
||||||
labelCol: {
|
labelCol: {
|
||||||
@@ -209,7 +210,7 @@
|
|||||||
editAfter() {
|
editAfter() {
|
||||||
this.billStatus = '0'
|
this.billStatus = '0'
|
||||||
if (this.action === 'add') {
|
if (this.action === 'add') {
|
||||||
this.addInit("SR")
|
this.addInit(this.prefixNo)
|
||||||
this.fileList = []
|
this.fileList = []
|
||||||
} else {
|
} else {
|
||||||
this.model.billTime = this.model.billTimeStr
|
this.model.billTime = this.model.billTimeStr
|
||||||
|
|||||||
@@ -142,6 +142,7 @@
|
|||||||
// 新增时子表默认添加几行空数据
|
// 新增时子表默认添加几行空数据
|
||||||
addDefaultRowNum: 1,
|
addDefaultRowNum: 1,
|
||||||
visible: false,
|
visible: false,
|
||||||
|
prefixNo: 'ZC',
|
||||||
model: {},
|
model: {},
|
||||||
fileList:[],
|
fileList:[],
|
||||||
labelCol: {
|
labelCol: {
|
||||||
|
|||||||
@@ -174,6 +174,7 @@
|
|||||||
// 新增时子表默认添加几行空数据
|
// 新增时子表默认添加几行空数据
|
||||||
addDefaultRowNum: 0,
|
addDefaultRowNum: 0,
|
||||||
visible: false,
|
visible: false,
|
||||||
|
prefixNo: 'SK',
|
||||||
model: {},
|
model: {},
|
||||||
fileList:[],
|
fileList:[],
|
||||||
labelCol: {
|
labelCol: {
|
||||||
@@ -231,7 +232,7 @@
|
|||||||
editAfter() {
|
editAfter() {
|
||||||
this.billStatus = '0'
|
this.billStatus = '0'
|
||||||
if (this.action === 'add') {
|
if (this.action === 'add') {
|
||||||
this.addInit("SK")
|
this.addInit(this.prefixNo)
|
||||||
this.fileList = []
|
this.fileList = []
|
||||||
} else {
|
} else {
|
||||||
this.model.billTime = this.model.billTimeStr
|
this.model.billTime = this.model.billTimeStr
|
||||||
|
|||||||
@@ -174,6 +174,7 @@
|
|||||||
// 新增时子表默认添加几行空数据
|
// 新增时子表默认添加几行空数据
|
||||||
addDefaultRowNum: 0,
|
addDefaultRowNum: 0,
|
||||||
visible: false,
|
visible: false,
|
||||||
|
prefixNo: 'FK',
|
||||||
model: {},
|
model: {},
|
||||||
fileList:[],
|
fileList:[],
|
||||||
labelCol: {
|
labelCol: {
|
||||||
@@ -234,7 +235,7 @@
|
|||||||
editAfter() {
|
editAfter() {
|
||||||
this.billStatus = '0'
|
this.billStatus = '0'
|
||||||
if (this.action === 'add') {
|
if (this.action === 'add') {
|
||||||
this.addInit("FK")
|
this.addInit(this.prefixNo)
|
||||||
this.fileList = []
|
this.fileList = []
|
||||||
} else {
|
} else {
|
||||||
this.model.billTime = this.model.billTimeStr
|
this.model.billTime = this.model.billTimeStr
|
||||||
|
|||||||
Reference in New Issue
Block a user