修改文档拆分得细节问题
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<j-modal
|
||||
:title="$t('docTool.split.splitText')"
|
||||
:title="'拆分上传文本'"
|
||||
:width="width"
|
||||
:visible="visible"
|
||||
switchFullscreen
|
||||
@@ -27,6 +27,9 @@
|
||||
:maxLength="50"
|
||||
v-decorator="['title', validatorRules.title]" />
|
||||
</a-form-item>
|
||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="'拆分文档类型'">
|
||||
企标文件
|
||||
</a-form-item>
|
||||
<!--文本状态-->
|
||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('docTool.comparison.textStatus')">
|
||||
<a-input :placeholder="$t('pleaseEnter') + $t('docTool.comparison.textStatus')"
|
||||
@@ -53,11 +56,11 @@
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
|
||||
<!-- <div class="tip">-->
|
||||
<!-- <a-icon type="exclamation-circle" class="tip-icon" />-->
|
||||
<!-- <span>{{ $t('docTool.split.splitImportResultTip') }}</span>-->
|
||||
<!-- <span class="tip-click" @click="showTips">{{ $t('docTool.split.clickToView') }}</span>-->
|
||||
<!-- </div>-->
|
||||
<div class="tip">
|
||||
<a-icon type="exclamation-circle" class="tip-icon" />
|
||||
<span>{{ $t('docTool.split.splitImportResultWord') }}</span>
|
||||
<span class="tip-click" @click="showTips">{{ $t('docTool.split.clickToView') }}</span>
|
||||
</div>
|
||||
</a-spin>
|
||||
</j-modal>
|
||||
</template>
|
||||
@@ -150,12 +153,22 @@ export default {
|
||||
cancelText: this.$t('docTool.split.gotIt'),
|
||||
title: this.$t('docTool.split.formatRequirement'),
|
||||
content: (h) => {
|
||||
const contentArr = [this.$t('docTool.split.formatRequirementContentOne'), this.$t('docTool.split.formatRequirementContentTwo'), this.$t('docTool.split.formatRequirementContentThree'), this.$t('docTool.split.formatRequirementContentFour')]
|
||||
const contentArr = ['(标题要求如下,不可省略且必须为正文格式,内容无规定)', '1 范围', '2 规范性引用文件', '3 术语与定义',
|
||||
'4、5、6...', '(注)', '1.Word版本必须是2007以上', '2.文档序号从4开始拆分,且序号必须为连续,例如4.1,4.2,4.3']
|
||||
const contentDomArr = []
|
||||
for (const content of contentArr) {
|
||||
console.log(content)
|
||||
contentDomArr.push(h('div', {}, content))
|
||||
for (let i = 0; i < contentArr.length; i++) {
|
||||
if (i === 1 || i === 2 || i === 3 || i === 4) {
|
||||
contentDomArr.push(h('div', { class: 'textClass' }, contentArr[i]))
|
||||
} else if (i === 5) {
|
||||
contentDomArr.push(h('div', { class: 'textClassRed' }, contentArr[i]))
|
||||
} else {
|
||||
contentDomArr.push(h('div', { }, contentArr[i]))
|
||||
}
|
||||
}
|
||||
// for (const content of contentArr) {
|
||||
// console.log(content)
|
||||
// contentDomArr.push(h('div', {}, content))
|
||||
// }
|
||||
return contentDomArr
|
||||
}
|
||||
})
|
||||
@@ -204,3 +217,16 @@ export default {
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.textClass{
|
||||
color: rgba(0, 0, 0, 0.65);
|
||||
font-weight: 600;
|
||||
font-size: 16px;
|
||||
margin-top: 6px;
|
||||
}
|
||||
.textClassRed{
|
||||
color: red;
|
||||
font-size: 14px;
|
||||
margin-top: 6px;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user