|
@@ -150,7 +150,7 @@ function renderReportDocsByTextbook(textbook){
|
|
|
// 圆圈选中未选 ○ 未选 ● 选中
|
|
|
let circleCheck = ["○","●"];
|
|
|
// 方块选中未选 ○ 未选 ● 选中
|
|
|
- let squareCheck = [`□`,`☑`];
|
|
|
+ let squareCheck = [`□`,String.fromCharCode(0xFE)];
|
|
|
|
|
|
// 联系电话:默认为作者首个存在的电话;
|
|
|
let mobile = json?.authorList?.find(item => item.mobile)?.mobile || ""
|
|
@@ -257,7 +257,7 @@ function renderReportDocsByTextbook(textbook){
|
|
|
authorUnit:padString(json?.unit,21),
|
|
|
publisherPad:padString(json?.editionUnit,21),
|
|
|
recommandUnit:padString("",14), // 未找到
|
|
|
- majorCodePad:padString((majorCode),14),
|
|
|
+ majorCodePad:padString((majorCode),6),
|
|
|
createdDate:padString(createdDate,21),
|
|
|
// 基本信息
|
|
|
title:json?.title,
|
|
@@ -391,6 +391,7 @@ function toYearMonth(date){
|
|
|
|
|
|
function padString(str,width) {
|
|
|
str = str || ""
|
|
|
+ return str
|
|
|
str = String(str)
|
|
|
width = width || 21 // 目标宽度为21个单位
|
|
|
let spaceChar = " " // 占位符 render可用空格,但document.xml用 
|