[update] 拆分变更
This commit is contained in:
@@ -563,6 +563,7 @@ module.exports = {
|
|||||||
batSetting: 'batch setting',
|
batSetting: 'batch setting',
|
||||||
selectDirectoryTerms: 'please select the directory location to add terms',
|
selectDirectoryTerms: 'please select the directory location to add terms',
|
||||||
StandardBreakdown: 'Standard breakdown',
|
StandardBreakdown: 'Standard breakdown',
|
||||||
|
OnlyWordItem: 'Non GSO file type, PDF file cannot be split',
|
||||||
OnlyWord: 'only word files can be imported',
|
OnlyWord: 'only word files can be imported',
|
||||||
labelAreaDeleted: 'If it is deleted, all label items under the display area will be deleted',
|
labelAreaDeleted: 'If it is deleted, all label items under the display area will be deleted',
|
||||||
searchInResults: 'Search in results',
|
searchInResults: 'Search in results',
|
||||||
|
|||||||
@@ -569,6 +569,7 @@ module.exports = {
|
|||||||
documentSplitTemplate: '文档拆分模板',
|
documentSplitTemplate: '文档拆分模板',
|
||||||
batSetting: '批量设置',
|
batSetting: '批量设置',
|
||||||
selectDirectoryTerms: '请选择添加条款的目录位置',
|
selectDirectoryTerms: '请选择添加条款的目录位置',
|
||||||
|
OnlyWordItem: '非GSO文件类型,不能拆分pdf文件',
|
||||||
OnlyWord: '只能导入word文件',
|
OnlyWord: '只能导入word文件',
|
||||||
labelAreaDeleted: '若进行删除,则该展示区域下标签项都将被删除',
|
labelAreaDeleted: '若进行删除,则该展示区域下标签项都将被删除',
|
||||||
StandardBreakdown: '标准分解单',
|
StandardBreakdown: '标准分解单',
|
||||||
|
|||||||
@@ -220,36 +220,70 @@
|
|||||||
if (file.file_name) {
|
if (file.file_name) {
|
||||||
let name = file.file_name.split('.')
|
let name = file.file_name.split('.')
|
||||||
let nameSuffix = name[name.length - 1]
|
let nameSuffix = name[name.length - 1]
|
||||||
if (nameSuffix.toLowerCase() === 'doc'||nameSuffix.toLowerCase() === 'docx'||nameSuffix.toLowerCase() === 'pdf') {
|
if(this.fileGroup === 'GSO') {
|
||||||
let params = {
|
if (nameSuffix.toLowerCase() === 'doc'||nameSuffix.toLowerCase() === 'docx'||nameSuffix.toLowerCase() === 'pdf') {
|
||||||
attId: file.id,
|
let params = {
|
||||||
title: file.title,
|
attId: file.id,
|
||||||
fileName:file.file_name,
|
title: file.title,
|
||||||
serialNumber: file.serial_number,
|
fileName:file.file_name,
|
||||||
connectId: file.connect_id,
|
serialNumber: file.serial_number,
|
||||||
fileGroup: this.fileGroup,
|
connectId: file.connect_id,
|
||||||
fileType:file.text_info
|
fileGroup: this.fileGroup,
|
||||||
|
fileType:file.text_info
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!this.submitFlag){
|
||||||
|
this.submitFlag=true
|
||||||
|
postAction(`split/sarFileSplitInfo/add`, params).then(res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
|
eventBUs.$emit('searchReset')
|
||||||
|
this.visible = false;
|
||||||
|
this.$emit('visible', false)
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
}
|
||||||
|
}).finally(()=>{
|
||||||
|
this.submitFlag =false
|
||||||
|
|
||||||
|
})
|
||||||
|
this.$emit('exportVisible',true)
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this.$message.warning(this.$t('OnlyWord'))
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!this.submitFlag){
|
|
||||||
this.submitFlag=true
|
|
||||||
postAction(`split/sarFileSplitInfo/add`, params).then(res => {
|
|
||||||
if (res.success) {
|
|
||||||
this.$message.success(this.$t('OperationSuccessful'))
|
|
||||||
eventBUs.$emit('searchReset')
|
|
||||||
this.visible = false;
|
|
||||||
this.$emit('visible', false)
|
|
||||||
} else {
|
|
||||||
this.$message.warning(res.message)
|
|
||||||
}
|
|
||||||
}).finally(()=>{
|
|
||||||
this.submitFlag =false
|
|
||||||
|
|
||||||
})
|
|
||||||
this.$emit('exportVisible',true)
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(this.$t('OnlyWord'))
|
if (nameSuffix.toLowerCase() === 'doc'||nameSuffix.toLowerCase() === 'docx') {
|
||||||
|
let params = {
|
||||||
|
attId: file.id,
|
||||||
|
title: file.title,
|
||||||
|
fileName:file.file_name,
|
||||||
|
serialNumber: file.serial_number,
|
||||||
|
connectId: file.connect_id,
|
||||||
|
fileGroup: this.fileGroup,
|
||||||
|
fileType:file.text_info
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!this.submitFlag){
|
||||||
|
this.submitFlag=true
|
||||||
|
postAction(`split/sarFileSplitInfo/add`, params).then(res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
|
eventBUs.$emit('searchReset')
|
||||||
|
this.visible = false;
|
||||||
|
this.$emit('visible', false)
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
}
|
||||||
|
}).finally(()=>{
|
||||||
|
this.submitFlag =false
|
||||||
|
|
||||||
|
})
|
||||||
|
this.$emit('exportVisible',true)
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this.$message.warning(this.$t('OnlyWordItem'))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user