[update 拆分编辑] 译文默认空字符串
This commit is contained in:
@@ -538,7 +538,7 @@ 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]
|
||||||
const imgDataTranslation = item.itemContent.split('fileName=')[1]
|
const imgDataTranslation = item.translation.split('fileName=')[1]
|
||||||
if (item.type === TypeOfClauseItem.IMG.value) {
|
if (item.type === TypeOfClauseItem.IMG.value) {
|
||||||
item[this.operateField.content.tempUrlField] = window._CONFIG.domianURL + '/sys/split/file/getImage?fileName=' + imgData
|
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
|
item[this.operateField.translation.tempUrlField] = window._CONFIG.domianURL + '/sys/split/file/getImage?fileName=' + imgDataTranslation
|
||||||
@@ -742,6 +742,8 @@ export default {
|
|||||||
delete item[this.operateField.content.tempUrlField]
|
delete item[this.operateField.content.tempUrlField]
|
||||||
delete item[this.operateField.translation.tempUrlField]
|
delete item[this.operateField.translation.tempUrlField]
|
||||||
}
|
}
|
||||||
|
// 如果是null就默认空字符串
|
||||||
|
item.translation = item.translation || ''
|
||||||
})
|
})
|
||||||
formData.itemValEOList = contentList
|
formData.itemValEOList = contentList
|
||||||
formData.interpretationArticlesList = this.interpretationArticlesList.filter(tt => !!tt.itemContent)
|
formData.interpretationArticlesList = this.interpretationArticlesList.filter(tt => !!tt.itemContent)
|
||||||
|
|||||||
Reference in New Issue
Block a user