Merge branch '标准拆分译文变更'
This commit is contained in:
@@ -500,6 +500,7 @@ module.exports = {
|
|||||||
// 文档拆分
|
// 文档拆分
|
||||||
split: {
|
split: {
|
||||||
textSearch: 'Text Search',
|
textSearch: 'Text Search',
|
||||||
|
translation: 'Translation',
|
||||||
splitText: 'Split Library File',
|
splitText: 'Split Library File',
|
||||||
importResults: 'Import Split Results',
|
importResults: 'Import Split Results',
|
||||||
splitState: 'Split Status',
|
splitState: 'Split Status',
|
||||||
|
|||||||
@@ -500,6 +500,7 @@ module.exports = {
|
|||||||
// 文档拆分
|
// 文档拆分
|
||||||
split: {
|
split: {
|
||||||
textSearch: '文本搜索',
|
textSearch: '文本搜索',
|
||||||
|
translation: '译文',
|
||||||
splitText: '拆分已入库文本',
|
splitText: '拆分已入库文本',
|
||||||
importResults: '导入拆分结果',
|
importResults: '导入拆分结果',
|
||||||
splitState: '拆分状态',
|
splitState: '拆分状态',
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
class="split-upload-list"
|
class="split-upload-list"
|
||||||
name="file"
|
name="file"
|
||||||
:file-list="myFileList"
|
:file-list="myFileList"
|
||||||
:multiple="true"
|
:multiple="multiple"
|
||||||
:action='uploadAction'
|
:action='uploadAction'
|
||||||
:headers="headers"
|
:headers="headers"
|
||||||
:list-type="listType"
|
:list-type="listType"
|
||||||
@@ -28,12 +28,28 @@ import { ACCESS_TOKEN } from '@/store/mutation-types'
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'SplitAddClauseUploadImage',
|
name: 'SplitAddClauseUploadImage',
|
||||||
props: [
|
props: {
|
||||||
'disabled',
|
disabled: {
|
||||||
'accept',
|
type: Boolean,
|
||||||
'title',
|
default: false
|
||||||
'listType'
|
},
|
||||||
],
|
accept: {
|
||||||
|
type: String,
|
||||||
|
default: ''
|
||||||
|
},
|
||||||
|
title: {
|
||||||
|
type: String,
|
||||||
|
default: ''
|
||||||
|
},
|
||||||
|
listType: {
|
||||||
|
type: String,
|
||||||
|
default: ''
|
||||||
|
},
|
||||||
|
multiple: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true
|
||||||
|
}
|
||||||
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
uploadVisible: false,
|
uploadVisible: false,
|
||||||
@@ -55,6 +71,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
open () {
|
open () {
|
||||||
this.uploadVisible = true
|
this.uploadVisible = true
|
||||||
|
this.resetFileList()
|
||||||
},
|
},
|
||||||
perentHandleFunc (data) {
|
perentHandleFunc (data) {
|
||||||
this.myFileList = data
|
this.myFileList = data
|
||||||
|
|||||||
@@ -156,7 +156,15 @@
|
|||||||
|
|
||||||
<!--条文内容-->
|
<!--条文内容-->
|
||||||
<template slot="item_content" slot-scope="{text, record}">
|
<template slot="item_content" slot-scope="{text, record}">
|
||||||
<div class="table-text" v-if="text || text === 0" @click="showContent('item_content', text,record)">
|
<div style="cursor: pointer;" class="table-text" v-if="text || text === 0" @click="showContent('item_content', text,record)">
|
||||||
|
{{ text && text !== 'null' ? text.replace(/<.*?>/ig, ' ') : '' }}
|
||||||
|
</div>
|
||||||
|
<div class="table-text" v-else>{{ global.emptyLine }}</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<!--译文-->
|
||||||
|
<template slot="translation" slot-scope="{text, record}">
|
||||||
|
<div style="cursor: pointer;" class="table-text" v-if="text || text === 0" @click="showContent('translation', text,record)">
|
||||||
{{ text && text !== 'null' ? text.replace(/<.*?>/ig, ' ') : '' }}
|
{{ text && text !== 'null' ? text.replace(/<.*?>/ig, ' ') : '' }}
|
||||||
</div>
|
</div>
|
||||||
<div class="table-text" v-else>{{ global.emptyLine }}</div>
|
<div class="table-text" v-else>{{ global.emptyLine }}</div>
|
||||||
@@ -164,7 +172,7 @@
|
|||||||
|
|
||||||
<!--条文解读-->
|
<!--条文解读-->
|
||||||
<template slot="interpretation_articles" slot-scope="{text, record}">
|
<template slot="interpretation_articles" slot-scope="{text, record}">
|
||||||
<div class="table-text" v-if="text || text === 0" @click="showContent('interpretation_articles', text,record)">
|
<div style="cursor: pointer;" class="table-text" v-if="text || text === 0" @click="showContent('interpretation_articles', text,record)">
|
||||||
{{ text && text !== 'null' ? text.replace(/<.*?>/ig, ' ') : '' }}
|
{{ text && text !== 'null' ? text.replace(/<.*?>/ig, ' ') : '' }}
|
||||||
</div>
|
</div>
|
||||||
<div class="table-text" v-else>{{ global.emptyLine }}</div>
|
<div class="table-text" v-else>{{ global.emptyLine }}</div>
|
||||||
@@ -293,7 +301,7 @@ export default {
|
|||||||
downTemplateUrl: '/laws/DocumentTool/documentSplit/downloadImportTemplate' // 模板下载
|
downTemplateUrl: '/laws/DocumentTool/documentSplit/downloadImportTemplate' // 模板下载
|
||||||
},
|
},
|
||||||
disabledMixinsCreate: true,
|
disabledMixinsCreate: true,
|
||||||
tableSlotField: ['item_content', 'interpretation_articles'],
|
tableSlotField: ['item_content', 'translation', 'interpretation_articles'],
|
||||||
uploadData: {},
|
uploadData: {},
|
||||||
isBackTitle: true,
|
isBackTitle: true,
|
||||||
expandedKeys: []
|
expandedKeys: []
|
||||||
|
|||||||
@@ -182,34 +182,60 @@
|
|||||||
|
|
||||||
<!--条款内容部分-->
|
<!--条款内容部分-->
|
||||||
<div class="header-text">
|
<div class="header-text">
|
||||||
{{ $t('docTool.split.clauseContent') }}
|
{{ $t('docTool.split.clauseContent') }} / {{ $t('docTool.split.translation') }}
|
||||||
<!--新增条款项-->
|
<!--新增条款项-->
|
||||||
<a-button type="primary" icon="plus" ghost @click="handleAddClauseContent(-1)">{{ $t('newlyAdded') }}</a-button>
|
<a-button type="primary" icon="plus" ghost @click="handleAddClauseContent(-1)">{{ $t('newlyAdded') }}</a-button>
|
||||||
</div>
|
</div>
|
||||||
<template v-if="contentList && contentList.length > 0">
|
<template v-if="contentList && contentList.length > 0">
|
||||||
<div class="clause-item" v-for="(clause, index) in contentList" :key="clause.uuid || (index + 'clause')">
|
<div class="clause-item" v-for="(clause, index) in contentList" :key="clause.uuid || (index + 'clause')">
|
||||||
<div class="clause-item-content">
|
<div class="clause-item-operate">
|
||||||
|
<a-button @click="handleAddClauseContent(index)">{{ $t('newlyAdded') }}</a-button>
|
||||||
|
<a-button v-if="clause.type === TypeOfClauseItem.TABLE.value" @click="splitEdit(index,clause)">
|
||||||
|
{{ $t('edit') }}
|
||||||
|
</a-button>
|
||||||
|
<!--编辑译文表格-->
|
||||||
|
<a-button v-if="clause.type === TypeOfClauseItem.TABLE.value"
|
||||||
|
@click="splitEditTranslation(index,clause)">
|
||||||
|
{{ $t('edit') + $t('docTool.split.translation') }}
|
||||||
|
</a-button>
|
||||||
|
<!--没有图片时,新增译文图片-->
|
||||||
|
<a-button v-if="clause.type === TypeOfClauseItem.IMG.value && !clause.translation"
|
||||||
|
@click="splitEditTranslation(index,clause)">
|
||||||
|
{{ $t('newlyAdded') + $t('docTool.split.translation') + $t('docTool.split.picture') }}
|
||||||
|
</a-button>
|
||||||
|
<a-button @click="handleDeleteClauseContent(index, clause)">{{ $t('delete') }}</a-button>
|
||||||
|
</div>
|
||||||
|
<div class="clause-item-box">
|
||||||
|
<div class="clause-item-content">
|
||||||
|
<!--文本-->
|
||||||
|
<a-input type="textarea"
|
||||||
|
:maxLength="500"
|
||||||
|
v-model="clause.itemContent"
|
||||||
|
v-if="clause.type === TypeOfClauseItem.TEXT.value" />
|
||||||
|
<!--图片-->
|
||||||
|
<viewer>
|
||||||
|
<img v-if="clause.type === TypeOfClauseItem.IMG.value"
|
||||||
|
:src="clause[operateField.content.tempUrlField] ? clause[operateField.content.tempUrlField] : clause.itemContent"
|
||||||
|
alt="">
|
||||||
|
</viewer>
|
||||||
|
<!--表格-->
|
||||||
|
<div v-if="clause.type === TypeOfClauseItem.TABLE.value" v-html="clause.itemContent"></div>
|
||||||
|
</div>
|
||||||
|
<div class="clause-item-content" style="margin-left: 20px;">
|
||||||
<!--文本-->
|
<!--文本-->
|
||||||
<a-input type="textarea"
|
<a-input type="textarea"
|
||||||
:maxLength="500"
|
:maxLength="500"
|
||||||
v-model="clause.itemContent"
|
v-model="clause.translation"
|
||||||
v-if="clause.type === TypeOfClauseItem.TEXT.value" />
|
v-if="clause.type === TypeOfClauseItem.TEXT.value" />
|
||||||
<!--图片-->
|
<!--图片-->
|
||||||
<viewer>
|
<viewer>
|
||||||
<img v-if="clause.type === TypeOfClauseItem.IMG.value"
|
<img v-if="clause.type === TypeOfClauseItem.IMG.value"
|
||||||
:src="clause.thumbUrl?clause.thumbUrl:clause.itemContent"
|
:src="clause[operateField.translation.tempUrlField] ? clause[operateField.translation.tempUrlField] : clause.translation"
|
||||||
alt="">
|
alt="">
|
||||||
</viewer>
|
</viewer>
|
||||||
<!--表格-->
|
<!--表格-->
|
||||||
<div v-if="clause.type === TypeOfClauseItem.TABLE.value" v-html="clause.itemContent"></div>
|
<div v-if="clause.type === TypeOfClauseItem.TABLE.value" v-html="clause.translation"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="clause-item-operate">
|
|
||||||
<a-button @click="handleAddClauseContent(index)">{{ $t('newlyAdded') }}</a-button>
|
|
||||||
<a-button v-if="clause.type === TypeOfClauseItem.TABLE.value" @click="splitEdit(index,clause)">{{
|
|
||||||
$t('edit')
|
|
||||||
}}
|
|
||||||
</a-button>
|
|
||||||
<a-button @click="handleDeleteClauseContent(index, clause)">{{ $t('delete') }}</a-button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -220,6 +246,16 @@
|
|||||||
<a-button type="primary" class="footer-btn-save" @click="handleSave">{{ $t('preservation') }}</a-button>
|
<a-button type="primary" class="footer-btn-save" @click="handleSave">{{ $t('preservation') }}</a-button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- 上传图片弹框 -->
|
||||||
|
<split-add-clause-upload-image
|
||||||
|
ref="uploadImg"
|
||||||
|
:disabled="disabled"
|
||||||
|
:title="$t('uploadPictures')"
|
||||||
|
listType="picture"
|
||||||
|
:multiple="false"
|
||||||
|
accept=".png,.jpeg,.jpg,.gif"
|
||||||
|
@uploadSuccess="uploadSuccess">
|
||||||
|
</split-add-clause-upload-image>
|
||||||
<!-- 类型选择弹框 -->
|
<!-- 类型选择弹框 -->
|
||||||
<split-detail-add-type-check ref="splitDetailAddTypeCheck" @ok="handleAddOk" />
|
<split-detail-add-type-check ref="splitDetailAddTypeCheck" @ok="handleAddOk" />
|
||||||
<!-- 编辑表格弹框 -->
|
<!-- 编辑表格弹框 -->
|
||||||
@@ -249,10 +285,12 @@ import STreeSelect from '../../../../components/STreeSelect'
|
|||||||
import TreeSelection from '../../../../components/selection/TreeSelection'
|
import TreeSelection from '../../../../components/selection/TreeSelection'
|
||||||
import { randomUUID } from '@/utils/util'
|
import { randomUUID } from '@/utils/util'
|
||||||
import TreeDataSelection from '@comp/selection/TreeDataSelection'
|
import TreeDataSelection from '@comp/selection/TreeDataSelection'
|
||||||
|
import SplitAddClauseUploadImage from '@comp/splitUpload/SplitAddClauseUploadImage'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'SplitAddForm',
|
name: 'SplitAddForm',
|
||||||
components: {
|
components: {
|
||||||
|
SplitAddClauseUploadImage,
|
||||||
TreeDataSelection,
|
TreeDataSelection,
|
||||||
TreeSelection,
|
TreeSelection,
|
||||||
JMultipleDatePicker,
|
JMultipleDatePicker,
|
||||||
@@ -266,7 +304,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
FieldType,
|
FieldType,
|
||||||
TypeOfClauseItem,
|
TypeOfClauseItem,
|
||||||
hiddenFieldList: ['item_content'], // 隐藏的字段
|
hiddenFieldList: ['item_content', 'translation'], // 隐藏的字段
|
||||||
radioDictSelect: [], // 使用radio样式的数据字典单选
|
radioDictSelect: [], // 使用radio样式的数据字典单选
|
||||||
disabledFieldList: [], // 禁用的字段
|
disabledFieldList: [], // 禁用的字段
|
||||||
// 需要英文状态下翻译下拉的字段
|
// 需要英文状态下翻译下拉的字段
|
||||||
@@ -281,6 +319,13 @@ export default {
|
|||||||
contentList: [], // 条款内容数据
|
contentList: [], // 条款内容数据
|
||||||
visible: false,
|
visible: false,
|
||||||
addIndex: 0, // 新增条款的index
|
addIndex: 0, // 新增条款的index
|
||||||
|
// 操作的字段
|
||||||
|
operateField: {
|
||||||
|
content: { field: 'itemContent', tempUrlField: 'itemContentThumbUrl' },
|
||||||
|
translation: { field: 'translation', tempUrlField: 'translationThumbUrl' }
|
||||||
|
},
|
||||||
|
// 当前操作的字段,保存上面对象,方便扩展(用于回调使用)
|
||||||
|
currentFieldObj: {},
|
||||||
disabled: false,
|
disabled: false,
|
||||||
formInline: {},
|
formInline: {},
|
||||||
isFormInline: false,
|
isFormInline: false,
|
||||||
@@ -493,7 +538,11 @@ export default {
|
|||||||
this.contentList = [...res.result]
|
this.contentList = [...res.result]
|
||||||
this.contentList.forEach(item => {
|
this.contentList.forEach(item => {
|
||||||
const imgData = item.itemContent.split('fileName=')[1]
|
const imgData = item.itemContent.split('fileName=')[1]
|
||||||
item.thumbUrl = window._CONFIG.domianURL + '/sys/split/file/getImage?fileName=' + imgData
|
const imgDataTranslation = item.itemContent.split('fileName=')[1]
|
||||||
|
if (item.type === TypeOfClauseItem.IMG.value) {
|
||||||
|
item[this.operateField.content.tempUrlField] = window._CONFIG.domianURL + '/sys/split/file/getImage?fileName=' + imgData
|
||||||
|
item[this.operateField.translation.tempUrlField] = window._CONFIG.domianURL + '/sys/split/file/getImage?fileName=' + imgDataTranslation
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
@@ -505,6 +554,7 @@ export default {
|
|||||||
* @param index
|
* @param index
|
||||||
*/
|
*/
|
||||||
handleAddClauseContent (index) {
|
handleAddClauseContent (index) {
|
||||||
|
this.currentFieldObj = this.operateField.content
|
||||||
if (index === -1) {
|
if (index === -1) {
|
||||||
this.addIndex = this.contentList.length - 1
|
this.addIndex = this.contentList.length - 1
|
||||||
} else {
|
} else {
|
||||||
@@ -522,7 +572,8 @@ export default {
|
|||||||
id: '',
|
id: '',
|
||||||
uuid: randomUUID(),
|
uuid: randomUUID(),
|
||||||
type: TypeOfClauseItem.TEXT.value,
|
type: TypeOfClauseItem.TEXT.value,
|
||||||
itemContent: ''
|
itemContent: '',
|
||||||
|
translation: ''
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
@@ -534,8 +585,8 @@ export default {
|
|||||||
id: '',
|
id: '',
|
||||||
uuid: randomUUID(),
|
uuid: randomUUID(),
|
||||||
type: TypeOfClauseItem.IMG.value,
|
type: TypeOfClauseItem.IMG.value,
|
||||||
itemContent: file.response.result.url,
|
[this.currentFieldObj.field]: file.response.result.url,
|
||||||
thumbUrl: window._CONFIG.domianURL + '/sys/split/file/getImage?fileName=' + file.response.result.fileName
|
[this.currentFieldObj.tempUrlField]: window._CONFIG.domianURL + '/sys/split/file/getImage?fileName=' + file.response.result.fileName
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -545,7 +596,7 @@ export default {
|
|||||||
id: '',
|
id: '',
|
||||||
uuid: randomUUID(),
|
uuid: randomUUID(),
|
||||||
type: 'TABLE',
|
type: 'TABLE',
|
||||||
itemContent: content[0]
|
[this.currentFieldObj.field]: content[0]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (this.addIndex !== -1) {
|
if (this.addIndex !== -1) {
|
||||||
@@ -554,12 +605,38 @@ export default {
|
|||||||
this.contentList.push(...insertArr)
|
this.contentList.push(...insertArr)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
* 译文编辑
|
||||||
|
* @param index
|
||||||
|
* @param item
|
||||||
|
*/
|
||||||
|
splitEditTranslation (index, item) {
|
||||||
|
this.currentFieldObj = this.operateField.translation
|
||||||
|
this.addIndex = index
|
||||||
|
// 图片
|
||||||
|
if (item.type === TypeOfClauseItem.IMG.value) {
|
||||||
|
this.$refs.uploadImg.open()
|
||||||
|
} else if (item.type === TypeOfClauseItem.TABLE.value) {
|
||||||
|
this.$refs.splitDetailAddTable.open(item.translation)
|
||||||
|
this.$refs.splitDetailAddTable.isTableEdit = true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 译文上传图片
|
||||||
|
uploadSuccess (file, data, imgs) {
|
||||||
|
Object.assign(this.contentList[this.addIndex], {
|
||||||
|
type: TypeOfClauseItem.IMG.value,
|
||||||
|
[this.currentFieldObj.field]: file.response.result.url,
|
||||||
|
[this.currentFieldObj.tempUrlField]: window._CONFIG.domianURL + '/sys/split/file/getImage?fileName=' + file.response.result.fileName
|
||||||
|
})
|
||||||
|
this.$forceUpdate()
|
||||||
|
},
|
||||||
/**
|
/**
|
||||||
* 表格编辑
|
* 表格编辑
|
||||||
* @param index
|
* @param index
|
||||||
* @param item
|
* @param item
|
||||||
*/
|
*/
|
||||||
splitEdit (index, item) {
|
splitEdit (index, item) {
|
||||||
|
this.currentFieldObj = this.operateField.content
|
||||||
this.addIndex = index
|
this.addIndex = index
|
||||||
this.$refs.splitDetailAddTable.open(item.itemContent)
|
this.$refs.splitDetailAddTable.open(item.itemContent)
|
||||||
this.$refs.splitDetailAddTable.isTableEdit = true
|
this.$refs.splitDetailAddTable.isTableEdit = true
|
||||||
@@ -569,10 +646,15 @@ export default {
|
|||||||
* @param ueContent
|
* @param ueContent
|
||||||
*/
|
*/
|
||||||
editTableOk (ueContent) {
|
editTableOk (ueContent) {
|
||||||
this.contentList[this.addIndex] = {
|
// 如果内容和译文有一个有内容,就不进行覆盖
|
||||||
id: '',
|
if (this.contentList[this.addIndex][this.operateField.content.field] || this.contentList[this.addIndex][this.operateField.translation.field]) {
|
||||||
type: 'TABLE',
|
this.contentList[this.addIndex][this.currentFieldObj.field] = ueContent[0]
|
||||||
itemContent: ueContent[0]
|
} else {
|
||||||
|
this.contentList[this.addIndex] = {
|
||||||
|
id: '',
|
||||||
|
type: 'TABLE',
|
||||||
|
[this.currentFieldObj.field]: ueContent[0]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.contentList = JSON.parse(JSON.stringify(this.contentList))
|
this.contentList = JSON.parse(JSON.stringify(this.contentList))
|
||||||
},
|
},
|
||||||
@@ -657,7 +739,8 @@ export default {
|
|||||||
const contentList = JSON.parse(JSON.stringify(this.contentList))
|
const contentList = JSON.parse(JSON.stringify(this.contentList))
|
||||||
contentList.forEach((item, index) => {
|
contentList.forEach((item, index) => {
|
||||||
if (item.type === 'IMG') {
|
if (item.type === 'IMG') {
|
||||||
delete item.thumbUrl
|
delete item[this.operateField.content.tempUrlField]
|
||||||
|
delete item[this.operateField.translation.tempUrlField]
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
formData.itemValEOList = contentList
|
formData.itemValEOList = contentList
|
||||||
@@ -914,30 +997,33 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.clause-item {
|
.clause-item {
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
margin: 0 0 20px 20px;
|
margin: 0 0 20px 20px;
|
||||||
|
|
||||||
&-content {
|
&-box {
|
||||||
width: 0;
|
display: flex;
|
||||||
flex: 1;
|
justify-content: space-between;
|
||||||
|
|
||||||
/deep/ table {
|
.clause-item-content {
|
||||||
width: 100%;
|
width: 0;
|
||||||
border: 1px solid;
|
flex: 1;
|
||||||
td {
|
|
||||||
|
/deep/ table {
|
||||||
|
width: 100%;
|
||||||
border: 1px solid;
|
border: 1px solid;
|
||||||
|
td {
|
||||||
|
border: 1px solid;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/deep/ img {
|
||||||
|
max-width: 100%;
|
||||||
|
max-height: 500px;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
/deep/ img {
|
|
||||||
max-width: 100%;
|
|
||||||
max-height: 500px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&-operate {
|
&-operate {
|
||||||
|
margin-bottom: 15px;
|
||||||
.ant-btn {
|
.ant-btn:not(:first-child) {
|
||||||
margin-left: 15px
|
margin-left: 15px
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -132,7 +132,9 @@ export default {
|
|||||||
// 表格确认按钮
|
// 表格确认按钮
|
||||||
handleOkTable () {
|
handleOkTable () {
|
||||||
let ueContent = []
|
let ueContent = []
|
||||||
ueContent = this.ueContent.match(/<table.{0,}?.+?>{0,}?<\/table>/g) || []
|
if (this.ueContent) {
|
||||||
|
ueContent = this.ueContent.match(/<table.{0,}?.+?>{0,}?<\/table>/g) || []
|
||||||
|
}
|
||||||
if (ueContent && ueContent.length > 1) {
|
if (ueContent && ueContent.length > 1) {
|
||||||
this.$message.warning(this.$t('oneTableAdded'))
|
this.$message.warning(this.$t('oneTableAdded'))
|
||||||
} else if (!ueContent || ueContent.length < 1) {
|
} else if (!ueContent || ueContent.length < 1) {
|
||||||
|
|||||||
+6
-7
@@ -36,9 +36,9 @@
|
|||||||
:pagination="ipagination"
|
:pagination="ipagination"
|
||||||
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
<!--条文内容-->
|
<!--条文内容、译文-->
|
||||||
<template slot="item_content" slot-scope="{text, record}">
|
<template slot="htmlContent" slot-scope="{text, record}">
|
||||||
<div class="table-text" style="cursor: pointer" v-if="text || text === 0" @click="showContent('item_content', text,record)">
|
<div class="table-text" style="cursor: pointer" v-if="text || text === 0" @click="showContent(text, record)">
|
||||||
{{ text && text !== 'null' ? text.replace(/<.*?>/ig, ' ') : '' }}
|
{{ text && text !== 'null' ? text.replace(/<.*?>/ig, ' ') : '' }}
|
||||||
</div>
|
</div>
|
||||||
<div class="table-text" v-else>{{ global.emptyLine }}</div>
|
<div class="table-text" v-else>{{ global.emptyLine }}</div>
|
||||||
@@ -160,7 +160,7 @@ export default {
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 180,
|
||||||
dataIndex: 'itemContent',
|
dataIndex: 'itemContent',
|
||||||
scopedSlots: { customRender: 'item_content' }
|
scopedSlots: { customRender: 'htmlContent' }
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
// 操作列
|
// 操作列
|
||||||
@@ -193,7 +193,7 @@ export default {
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 180,
|
||||||
dataIndex: 'translation',
|
dataIndex: 'translation',
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'htmlContent' }
|
||||||
},
|
},
|
||||||
{ // 是否与上一版相同
|
{ // 是否与上一版相同
|
||||||
title: this.$t('workCenter.standardInterpretationProcess.sameAsPreviousVersion'),
|
title: this.$t('workCenter.standardInterpretationProcess.sameAsPreviousVersion'),
|
||||||
@@ -855,10 +855,9 @@ export default {
|
|||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* 显示条款内容、条文解读弹框
|
* 显示条款内容、条文解读弹框
|
||||||
* @param fieldName
|
|
||||||
* @param val
|
* @param val
|
||||||
*/
|
*/
|
||||||
showContent (fieldName, val) {
|
showContent (val) {
|
||||||
this.$refs.splitClauseDetail.open(val)
|
this.$refs.splitClauseDetail.open(val)
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
|
|||||||
+7
-7
@@ -14,13 +14,13 @@
|
|||||||
<a-spin :spinning="confirmLoading">
|
<a-spin :spinning="confirmLoading">
|
||||||
<a-form :form="form" :label-col="labelCol" :wrapper-col="wrapperCol">
|
<a-form :form="form" :label-col="labelCol" :wrapper-col="wrapperCol">
|
||||||
<!--译文-->
|
<!--译文-->
|
||||||
<a-form-item :label="$t('workCenter.standardInterpretationProcess.translation')" :colon="false">
|
<!--<a-form-item :label="$t('workCenter.standardInterpretationProcess.translation')" :colon="false">-->
|
||||||
<a-textarea :placeholder="$t('pleaseEnter') + $t('workCenter.standardInterpretationProcess.translation')"
|
<!-- <a-textarea :placeholder="$t('pleaseEnter') + $t('workCenter.standardInterpretationProcess.translation')"-->
|
||||||
:maxLength="500"
|
<!-- :maxLength="500"-->
|
||||||
:rows="4"
|
<!-- :rows="4"-->
|
||||||
:disabled="disabled"
|
<!-- :disabled="disabled"-->
|
||||||
v-decorator="['translation']" />
|
<!-- v-decorator="['translation']" />-->
|
||||||
</a-form-item>
|
<!--</a-form-item>-->
|
||||||
<!--是否与上一版相同-->
|
<!--是否与上一版相同-->
|
||||||
<a-form-item :label="$t('workCenter.standardInterpretationProcess.sameAsPreviousVersion')" :colon="false">
|
<a-form-item :label="$t('workCenter.standardInterpretationProcess.sameAsPreviousVersion')" :colon="false">
|
||||||
<j-dict-select-tag dict-code="yn"
|
<j-dict-select-tag dict-code="yn"
|
||||||
|
|||||||
Reference in New Issue
Block a user