Merge remote-tracking branch 'origin/master'

This commit is contained in:
wangzhijiang
2024-03-12 18:46:44 +08:00
5 changed files with 25 additions and 12 deletions
@@ -468,7 +468,7 @@ export default {
}
/deep/ .ant-tree li span.ant-tree-switcher {
float: right;
/*float: right;*/
}
.ant-spin-nested-loading {
@@ -38,11 +38,11 @@
:replace-fields="{key: 'menuId'}"
@select="onSelectLeft"
:tree-data="resultData.menuLeft">
<a-icon slot="switcherIcon" type="down" :style="{ fontSize: '12px', color: '#103770' }" />
<template slot="title" slot-scope="{title}">
<!-- 目录前三个和有子集的标题加粗 -->
<span :style="title.indexOf('.')===-1?'font-weight: 600;':''">{{ title }}</span>
</template>
<a-icon slot="switcherIcon" type="down" :style="{ fontSize: '12px', color: '#103770' }" />
</a-tree>
</div>
</div>
@@ -714,7 +714,7 @@ export default {
}
/deep/ .ant-tree li span.ant-tree-switcher {
float: right;
/*float: right;*/
}
::-webkit-scrollbar {
@@ -489,7 +489,7 @@ export default {
}
/deep/ .ant-tree li span.ant-tree-switcher {
float: right;
/*float: right;*/
}
::-webkit-scrollbar {
@@ -189,7 +189,7 @@ 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.导入的文档是zip格式', '2.图片为jpg、jpeg、 png、 gif格式', '3.文档中的图片,在导入exceI中以文件名填写,图文件存放在相对路径的目录下', '4.文档中的表格,在导入exceI中以链接的形式展示,击链接跳转到指定的sheet页面']
const contentDomArr = []
for (const content of contentArr) {
console.log(content)
@@ -48,7 +48,7 @@
<div class="header-text">
{{ $t('docTool.split.clauseContent') }}
<!--新增条款项-->
<a-button type="primary" icon="plus" ghost @click="handleAddClauseContent(1)">{{ $t('newlyAdded') }}</a-button>
<a-button type="primary" icon="plus" ghost @click="handleAddClauseContent()">{{ $t('newlyAdded') }}</a-button>
</div>
<template v-if="contentList && contentList.length > 0">
<div class="clause-item" v-for="(clause, index) in contentList" :key="index + 'clause'">
@@ -59,13 +59,12 @@
v-model="clause.itemContent"
v-if="clause.type === TypeOfClauseItem.TEXT.value" />
<!--图片-->
<viewer>
<img v-if="clause.type === TypeOfClauseItem.IMG.value"
:src="clause.thumbUrl?clause.thumbUrl:clause.itemContent"
<viewer v-else-if="clause.type === TypeOfClauseItem.IMG.value">
<img :src="clause.thumbUrl?clause.thumbUrl:clause.itemContent"
alt="">
</viewer>
<!--表格-->
<div v-if="clause.type === TypeOfClauseItem.TABLE.value" v-html="clause.itemContent"></div>
<div v-else-if="clause.type === TypeOfClauseItem.TABLE.value" v-html="clause.itemContent"></div>
</div>
<div class="clause-item-operate">
<a-button @click="handleAddClauseContent(index)">{{ $t('newlyAdded') }}</a-button>
@@ -145,6 +144,7 @@ export default {
itemVal: {},
contentTrees: '',
isTableEdit: false,
isTopList: false
}
},
props: {
@@ -214,16 +214,28 @@ export default {
*/
handleAddClauseContent (index) {
if (index === -1) {
this.isTopList = false
this.addIndex = this.contentList.length - 1
} else if (!index) {
this.isTopList = true
this.addIndex = this.contentList.length - 1
} else {
this.addIndex = index
this.isTopList = false
}
this.$refs.splitDetailAddTypeCheck.open()
},
// 增加条款内容成功
handleAddOk (type, content) {
const headerArr = this.contentList.splice(0, this.addIndex + 1)
const footerArr = this.contentList.splice(-this.addIndex)
let headerArr = []
let footerArr = []
if (this.isTopList) {
headerArr = this.contentList
footerArr = []
} else {
headerArr = this.contentList.splice(0, this.addIndex + 1)
footerArr = this.contentList.splice(-this.addIndex)
}
const insertArr = []
switch (type) {
case TypeOfClauseItem.TEXT.value:
@@ -251,6 +263,7 @@ export default {
}
}
this.contentList = [...headerArr, ...insertArr, ...footerArr]
console.log(this.contentList)
},
/**
* 表格编辑