[update] 拆分变更
This commit is contained in:
@@ -563,6 +563,7 @@ module.exports = {
|
||||
batSetting: 'batch setting',
|
||||
selectDirectoryTerms: 'please select the directory location to add terms',
|
||||
StandardBreakdown: 'Standard breakdown',
|
||||
OnlyWordItem: 'Non GSO file type, PDF file cannot be split',
|
||||
OnlyWord: 'only word files can be imported',
|
||||
labelAreaDeleted: 'If it is deleted, all label items under the display area will be deleted',
|
||||
searchInResults: 'Search in results',
|
||||
|
||||
@@ -569,6 +569,7 @@ module.exports = {
|
||||
documentSplitTemplate: '文档拆分模板',
|
||||
batSetting: '批量设置',
|
||||
selectDirectoryTerms: '请选择添加条款的目录位置',
|
||||
OnlyWordItem: '非GSO文件类型,不能拆分pdf文件',
|
||||
OnlyWord: '只能导入word文件',
|
||||
labelAreaDeleted: '若进行删除,则该展示区域下标签项都将被删除',
|
||||
StandardBreakdown: '标准分解单',
|
||||
|
||||
@@ -220,36 +220,70 @@
|
||||
if (file.file_name) {
|
||||
let name = file.file_name.split('.')
|
||||
let nameSuffix = name[name.length - 1]
|
||||
if (nameSuffix.toLowerCase() === 'doc'||nameSuffix.toLowerCase() === 'docx'||nameSuffix.toLowerCase() === 'pdf') {
|
||||
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.fileGroup === 'GSO') {
|
||||
if (nameSuffix.toLowerCase() === 'doc'||nameSuffix.toLowerCase() === 'docx'||nameSuffix.toLowerCase() === 'pdf') {
|
||||
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('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 {
|
||||
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