fix 页眉中的标准编号是黑体。
This commit is contained in:
@@ -487,11 +487,13 @@ export default {
|
|||||||
oParagraph.AddText(Asc.scope.standCode)
|
oParagraph.AddText(Asc.scope.standCode)
|
||||||
oParagraph.SetPosition(-4)
|
oParagraph.SetPosition(-4)
|
||||||
oParagraph.SetJc('left')
|
oParagraph.SetJc('left')
|
||||||
|
oParagraph.SetFontFamily('黑体')
|
||||||
let oHeader1 = oNextSection.GetHeader('default', true)
|
let oHeader1 = oNextSection.GetHeader('default', true)
|
||||||
const oParagraph20 = oHeader1.GetElement(0)
|
const oParagraph20 = oHeader1.GetElement(0)
|
||||||
oParagraph20.AddText(Asc.scope.standCode)
|
oParagraph20.AddText(Asc.scope.standCode)
|
||||||
oParagraph20.SetPosition(-4)
|
oParagraph20.SetPosition(-4)
|
||||||
oParagraph20.SetJc('right')
|
oParagraph20.SetJc('right')
|
||||||
|
oParagraph20.SetFontFamily('黑体')
|
||||||
|
|
||||||
let oFooter = oNextSection.GetFooter('even', true)
|
let oFooter = oNextSection.GetFooter('even', true)
|
||||||
const oParagraphFooter = oFooter.GetElement(0)
|
const oParagraphFooter = oFooter.GetElement(0)
|
||||||
@@ -1013,7 +1015,7 @@ export default {
|
|||||||
handleInit () {
|
handleInit () {
|
||||||
window.Asc.scope.BORDER_DISABLE = BORDER_DISABLE
|
window.Asc.scope.BORDER_DISABLE = BORDER_DISABLE
|
||||||
Asc.scope.standCNName = this.form.standName
|
Asc.scope.standCNName = this.form.standName
|
||||||
Asc.scope.standCode = this.form.standCode || 'x/xx xxxx-xxxx'
|
Asc.scope.standCode = this.form.standCode || 'Q/ZZ xxxx-xxxx'
|
||||||
this.ctx.callCommand(() => {
|
this.ctx.callCommand(() => {
|
||||||
try {
|
try {
|
||||||
const oDocument = Api.GetDocument()
|
const oDocument = Api.GetDocument()
|
||||||
@@ -1042,11 +1044,13 @@ export default {
|
|||||||
oParagraphText.AddText(Asc.scope.standCode)
|
oParagraphText.AddText(Asc.scope.standCode)
|
||||||
oParagraphText.SetPosition(-4)
|
oParagraphText.SetPosition(-4)
|
||||||
oParagraphText.SetJc('left')
|
oParagraphText.SetJc('left')
|
||||||
|
oParagraphText.SetFontFamily('黑体')
|
||||||
let oHeader2Text = oSectionNext.GetHeader('default', true)
|
let oHeader2Text = oSectionNext.GetHeader('default', true)
|
||||||
const oParagraph20Text = oHeader2Text.GetElement(0)
|
const oParagraph20Text = oHeader2Text.GetElement(0)
|
||||||
oParagraph20Text.AddText(Asc.scope.standCode)
|
oParagraph20Text.AddText(Asc.scope.standCode)
|
||||||
oParagraph20Text.SetPosition(-4)
|
oParagraph20Text.SetPosition(-4)
|
||||||
oParagraph20Text.SetJc('right')
|
oParagraph20Text.SetJc('right')
|
||||||
|
oParagraph20Text.SetFontFamily('黑体')
|
||||||
let oFooterText = oSectionNext.GetFooter('even', true)
|
let oFooterText = oSectionNext.GetFooter('even', true)
|
||||||
const oParagraphFooterText = oFooterText.GetElement(0)
|
const oParagraphFooterText = oFooterText.GetElement(0)
|
||||||
oParagraphFooterText.SetPosition(3)
|
oParagraphFooterText.SetPosition(3)
|
||||||
|
|||||||
Reference in New Issue
Block a user