导入拆分文件类型修改
This commit is contained in:
@@ -137,6 +137,7 @@
|
||||
OperationList:[],
|
||||
token:Vue.ls.get(ACCESS_TOKEN),
|
||||
cut:'',
|
||||
submitFlag:false
|
||||
}
|
||||
},
|
||||
props:{
|
||||
@@ -226,31 +227,24 @@
|
||||
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 =true
|
||||
|
||||
// if (file.text_info == '发布稿(必读)') {
|
||||
// params.fileType = '1'
|
||||
// } else if (file.text_info == '增补件(必读)') {
|
||||
// params.fileType = '2'
|
||||
// } else if (file.text_info == '报批稿') {
|
||||
// params.fileType = '3'
|
||||
// } else if (file.text_info == '征求意见稿') {
|
||||
// params.fileType = '4'
|
||||
// } else if (file.text_info == '测试程序') {
|
||||
// params.fileType = '5'
|
||||
// } else if (file.text_info == '相关资料') {
|
||||
// params.fileType = '6'
|
||||
// }
|
||||
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(this.$t('operationFailed'))
|
||||
}
|
||||
})
|
||||
this.$emit('exportVisible',true)
|
||||
}
|
||||
} else {
|
||||
this.$message.warning(this.$t('OnlyWord'))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user