|
|
|
@ -112,6 +112,11 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div v-if="summaryFlag"> |
|
|
|
<GuipRadio :options="summaryList" v-model="coverInfo.is_need_blank_line_between_the_keywords" label="是否需要空行:" /> |
|
|
|
<GuipRadio :options="summaryList" v-model="coverInfo.is_independent_page" label="是否单独页:" /> |
|
|
|
<GuipRadio :options="summaryList" v-model="coverInfo.is_before_catalogue" label="是否在目录前:" /> |
|
|
|
</div> |
|
|
|
<div v-if="headerMargin"> |
|
|
|
<!-- 暂时先不用 默认单位为厘米 --> |
|
|
|
<GuipRadio v-if="false" :options="distanceUnit" :client-form-flex="true" label="单位" /> |
|
|
|
@ -180,6 +185,10 @@ export default { |
|
|
|
type: Boolean, |
|
|
|
default: false |
|
|
|
}, |
|
|
|
summaryFlag: {// 摘要的新增 |
|
|
|
type: Boolean, |
|
|
|
default: false |
|
|
|
}, |
|
|
|
fontWeightflag: {// 字重是否显示 |
|
|
|
type: Boolean, |
|
|
|
default: true |
|
|
|
@ -280,7 +289,10 @@ export default { |
|
|
|
unit: 'pt', |
|
|
|
value: '' |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
// is_before_catalogue:'True', |
|
|
|
// is_independent_page:'True', |
|
|
|
// is_need_blank_line_between_the_keywords:'True' |
|
|
|
}, |
|
|
|
|
|
|
|
// UI相关数据 |
|
|
|
@ -288,6 +300,10 @@ export default { |
|
|
|
grammarCheck: '', |
|
|
|
|
|
|
|
// 默认选项列表 |
|
|
|
summaryList: [ |
|
|
|
{ label: '是', value: 'True' }, |
|
|
|
{ label: '否', value: 'False' }, |
|
|
|
], |
|
|
|
internalIndentationList: [ |
|
|
|
{ label: '有', value: '1' }, |
|
|
|
{ label: '无', value: '0' }, |
|
|
|
@ -516,7 +532,6 @@ export default { |
|
|
|
* 默认重置(创建状态) |
|
|
|
*/ |
|
|
|
defaultReset() { |
|
|
|
console.log('这里'); |
|
|
|
this.coverInfo = this.getDefaultCoverInfo(); |
|
|
|
this.indentation = '1'; // 默认有缩进 |
|
|
|
this.delimiter = ''; |
|
|
|
@ -624,7 +639,12 @@ export default { |
|
|
|
right:this.coverInfo.right |
|
|
|
} |
|
|
|
} |
|
|
|
return { |
|
|
|
const summaryJson = { |
|
|
|
"is_need_blank_line_between_the_keywords": this.coverInfo.is_need_blank_line_between_the_keywords, |
|
|
|
"is_independent_page": this.coverInfo.is_independent_page, |
|
|
|
"is_before_catalogue": this.coverInfo.is_before_catalogue |
|
|
|
} |
|
|
|
const baseJson = { |
|
|
|
font: { |
|
|
|
zh: { |
|
|
|
font: this.coverInfo.font.zh.font, |
|
|
|
@ -673,6 +693,10 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if(this.summaryFlag){ |
|
|
|
return {...baseJson,...summaryJson} |
|
|
|
} |
|
|
|
return baseJson |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
@ -893,6 +917,15 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if(levelData.is_need_blank_line_between_the_keywords){ |
|
|
|
this.coverInfo.is_need_blank_line_between_the_keywords = levelData.is_need_blank_line_between_the_keywords; |
|
|
|
} |
|
|
|
if(levelData.is_independent_page){ |
|
|
|
this.coverInfo.is_independent_page = levelData.is_independent_page; |
|
|
|
} |
|
|
|
if(levelData.is_before_catalogue){ |
|
|
|
this.coverInfo.is_before_catalogue = levelData.is_before_catalogue; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
|