diff --git a/jero-web/src/common/lang/en-us.js b/jero-web/src/common/lang/en-us.js index 1aa911c5c..52dd58c46 100644 --- a/jero-web/src/common/lang/en-us.js +++ b/jero-web/src/common/lang/en-us.js @@ -695,6 +695,8 @@ module.exports = { incorrectsubmitted:'The data status is incorrect; Only data with status to be confirmed can be submitted', date:'date', time:'time', + uploadMaximumATime:'upload a maximum of 20 images at a time', + confirmationOfRegulationsList:'Confirmation of regulations list', regulatoryTaskConfirmation:'Regulatory task confirmation', certificationStart:'Certification start', diff --git a/jero-web/src/common/lang/zh-cn.js b/jero-web/src/common/lang/zh-cn.js index f442c1729..f5da8dc13 100644 --- a/jero-web/src/common/lang/zh-cn.js +++ b/jero-web/src/common/lang/zh-cn.js @@ -698,6 +698,9 @@ module.exports = { finalizationTime:'定版时间', setting:'设定', date:'日期', + time:'时间', + uploadMaximumATime:'一次最多上传二十张图片', + time:'时间', confirmationOfRegulationsList:'法规清单确认', regulatoryTaskConfirmation:'法规任务确认', diff --git a/jero-web/src/components/SplitUpload/index.vue b/jero-web/src/components/SplitUpload/index.vue index 1001f2d67..bd260efb6 100644 --- a/jero-web/src/components/SplitUpload/index.vue +++ b/jero-web/src/components/SplitUpload/index.vue @@ -35,7 +35,7 @@ data() { return { visible: false, - uploadAction: window._CONFIG['domianURL'] + '/sys/common/upload', + uploadAction: window._CONFIG['domianURL'] + '/split/sarFileSplitItems/upload', upDataList: [], downLoadFileUrl: window._CONFIG['domianURL'] + '/sys/common/static', fileList: [], @@ -83,7 +83,10 @@ this.fileTypeSatus = false }else{ // let thisFileType = this.thisFileType.replace(/\s+/g, ""); - this.uploadFileFlag++ + if(this.uploadFileFlag<20){ + this.uploadFileFlag++ + } + this.fileTypeSatus = true this.$message.destroy() // 207M.doc文件大小超出100MB限制, 请压缩或降低文件质量! @@ -107,6 +110,7 @@ this.$message.error(val.response.message) info.fileList.splice(index, 1) } + }) if (this.fileTypeSatus) { if (file.size > 1000000000) { @@ -138,7 +142,10 @@ this.uploadFileFlag-- this.fileList = [] this.myfileList = info.fileList + console.log('listLength11111',info.fileList.length) if (info.fileList.length > 20) { + this.$message.destroy() + this.$message.error(this.$t('uploadMaximumATime')) info.fileList.splice(20) this.myfileList = info.fileList this.myfileList.forEach((res) => { @@ -148,25 +155,25 @@ this.fileList.push(res) } }) - this.$emit('uploadSuccess', this.fileList,fileList,this.uploadFileFlag) - this.$message.destroy() - this.$message.error('最多只能上传二十个') return - } - this.myfileList.forEach((res) => { - if (res.response) { - this.fileList.push(res.response.result) - } else { - this.fileList.push(res) + }else{ + + this.myfileList.forEach((res) => { + if (res.response) { + this.fileList.push(res.response.result) + } else { + this.fileList.push(res) + } + }) + // console.log('file111111',this.fileList,fileList,file,this.uploadFileFlag) + this.$emit('uploadSuccess',file, this.fileList,fileList,this.uploadFileFlag) + // console.log('uplossss',this.fileList,fileList) + if (this.myfileList.length > 0) { + this.$message.destroy() + this.$message.success(`${info.file.name} `+this.$t('uploadSuccessful')) } - }) - console.log('file111111',this.fileList,fileList,file,this.uploadFileFlag) - this.$emit('uploadSuccess',file, this.fileList,fileList,this.uploadFileFlag) - // console.log('uplossss',this.fileList,fileList) - if (this.myfileList.length > 0) { - this.$message.destroy() - this.$message.success(`${info.file.name} `+this.$t('uploadSuccessful')) } + } else if (status === 'uploading') { // this.uploadFileFlag++ this.myfileList = info.fileList diff --git a/jero-web/src/views/documentManage/splitting/modules/SplitAddForm.vue b/jero-web/src/views/documentManage/splitting/modules/SplitAddForm.vue index d9dd46392..603adbee8 100644 --- a/jero-web/src/views/documentManage/splitting/modules/SplitAddForm.vue +++ b/jero-web/src/views/documentManage/splitting/modules/SplitAddForm.vue @@ -811,7 +811,7 @@ }, //上传文件 - uploadSuccess1(file,data,imgs,uploadFileFlag) { + uploadSuccess1(file,data,imgs ,uploadFileFlag) { // console.log('dataimg',file,data,imgs,uploadFileFlag) for(let i = this.contentList.length;i>this.addIndex;i--){ @@ -821,7 +821,7 @@ id:'', type:'IMG', itemContent:file.response.result.id, - thumbUrl:file.thumbUrl + thumbUrl:file.response.result.url } // let lengthImg=imgs.length @@ -835,16 +835,17 @@ // id:'', // type:'IMG', // itemContent:item.response.result.id, - // thumbUrl:item.thumbUrl + // thumbUrl:item.response.result.url // } // }) // } + // this.$refs.uploadFile2.visible=false if(uploadFileFlag==0){ this.splitVisible=false } - console.log('conteend',data,this.contentList) + // console.log('conteend',imgs,this.contentList) }, //点击图片预览 preImg(item){ diff --git a/jero-web/src/views/documentManage/tags/dialog/TagForm.vue b/jero-web/src/views/documentManage/tags/dialog/TagForm.vue index e05447f82..2280ee6e9 100644 --- a/jero-web/src/views/documentManage/tags/dialog/TagForm.vue +++ b/jero-web/src/views/documentManage/tags/dialog/TagForm.vue @@ -15,14 +15,19 @@
{{$t('essentialInformation')}}
{{$t('DisplayOtherModules')}}
-{{$t('DisplayOtherModules')}}
+