update
1、Q/ZZ改回X/XX(原本福田就是X/XX); 2、封面右上角的X/XX位置改为从标准号中截取,截取逻辑在主系统处理; 3、添加从流程中获取数据生成封面、页眉页脚的功能; 4、目录样式更新的判断加了一个判断条件。
This commit is contained in:
@@ -213,12 +213,13 @@ export default {
|
||||
},
|
||||
// 创建封面
|
||||
handleCreateCover () {
|
||||
Asc.scope.standCode = this.form.standCode || 'Q/ZZ xxxx-xxxx'
|
||||
Asc.scope.replaceStandCode = this.form.dtqbbhbuss || 'Q/ZZ xxxx-xxxx'
|
||||
Asc.scope.standCode = this.form.standCode || 'X/XX xxxx-xxxx'
|
||||
Asc.scope.replaceStandCode = this.form.dtqbbhbuss || 'X/XX xxxx-xxxx'
|
||||
Asc.scope.standCNName = this.form.standName || 'xx'
|
||||
Asc.scope.standENName = this.form.standEnName || 'xx'
|
||||
Asc.scope.issueDate = this.form.issueTime || 'xxxx-xx-xx'
|
||||
Asc.scope.impDate = this.form.putTime || 'xxxx-xx-xx'
|
||||
Asc.scope.standardNumberPrefix = this.form.standardNumberPrefix || 'X/XX'
|
||||
// Asc.scope.that = {}
|
||||
// Asc.scope.that.handleInitForeword = this.handleInitForeword()
|
||||
// console.log(Asc.scope.that);
|
||||
@@ -268,7 +269,7 @@ export default {
|
||||
oInlineLvlSdtStandSort.SetAlias('foton.standSort')
|
||||
oInlineLvlSdtStandSort.SetLock('sdtLocked')
|
||||
const oRunStandSort = Api.CreateRun()
|
||||
oRunStandSort.AddText('Q/ZZ')
|
||||
oRunStandSort.AddText(Asc.scope.standardNumberPrefix)
|
||||
oInlineLvlSdtStandSort.AddElement(oRunStandSort, 0)
|
||||
oParagraph8Right.AddInlineLvlSdt(oInlineLvlSdtStandSort)
|
||||
oParagraph8Right.SetFontSize(96)
|
||||
@@ -1073,7 +1074,7 @@ export default {
|
||||
handleInit () {
|
||||
window.Asc.scope.BORDER_DISABLE = BORDER_DISABLE
|
||||
Asc.scope.standCNName = this.form.standName
|
||||
Asc.scope.standCode = this.form.standCode || 'Q/ZZ xxxx-xxxx'
|
||||
Asc.scope.standCode = this.form.standCode || 'X/XX xxxx-xxxx'
|
||||
this.ctx.callCommand(() => {
|
||||
try {
|
||||
const oDocument = Api.GetDocument()
|
||||
@@ -1457,9 +1458,9 @@ export default {
|
||||
console.log(e)
|
||||
}
|
||||
})
|
||||
if (this.form.issueTime) {
|
||||
this.addSeal()
|
||||
}
|
||||
// if (this.form.issueTime) {
|
||||
// this.addSeal()
|
||||
// }
|
||||
},
|
||||
|
||||
getYearMonth (date) {
|
||||
@@ -1859,7 +1860,7 @@ export default {
|
||||
for (let index = 0; index < allElement; index++) {
|
||||
const element = oDocument.GetElement(index)
|
||||
if ('blockLvlSdt' === element.GetClassType()) {
|
||||
if (element.GetPlaceholderText() == '在此输入文字') {
|
||||
if (element.GetPlaceholderText() === '在此输入文字' || element.GetPlaceholderText() === '在这输入文字') {
|
||||
ContentsPr = element
|
||||
}
|
||||
}
|
||||
@@ -2136,7 +2137,8 @@ export default {
|
||||
let documentCallbackUrl = window.Asc.plugin.info.documentCallbackUrl
|
||||
console.log(documentCallbackUrl)
|
||||
let query = param2Obj(documentCallbackUrl)
|
||||
this.form = query
|
||||
const businessInfo = JSON.parse(query.business)
|
||||
this.form = Object.assign(query, businessInfo)
|
||||
console.log(this.form)
|
||||
this.handleCreateCover()
|
||||
}, 1000)
|
||||
|
||||
Reference in New Issue
Block a user