diff --git a/jero-web/src/components/SplitUpload/index.vue b/jero-web/src/components/SplitUpload/index.vue index 67e56a7e0..6ebedd2ba 100644 --- a/jero-web/src/components/SplitUpload/index.vue +++ b/jero-web/src/components/SplitUpload/index.vue @@ -31,7 +31,7 @@ export default { name: 'file', - props: ['disableds', 'disabled', 'thisFileUploadUrl', 'readonly', 'thisFileType','accept','title','listType','splitVisible'], + props: ['disableds', 'disabled', 'thisFileUploadUrl', 'readonly', 'thisFileType','title','listType','splitVisible'], data() { return { visible: false, @@ -42,7 +42,8 @@ myfileList: [], isLoding: false, headers:'', - previewImage:{} + previewImage:{}, + accept:'image/*' } }, created() { @@ -148,6 +149,7 @@ } }) this.$emit('uploadSuccess', this.fileList,fileList) + console.log('uplossss',this.fileList,fileList) if (this.myfileList.length > 0) { this.$message.destroy() this.$message.success(`${info.file.name} `+this.$t('uploadSuccessful')) diff --git a/jero-web/src/views/documentManage/splitting/modules/SplitAddForm.vue b/jero-web/src/views/documentManage/splitting/modules/SplitAddForm.vue index 7b6d25da7..f30e2f576 100644 --- a/jero-web/src/views/documentManage/splitting/modules/SplitAddForm.vue +++ b/jero-web/src/views/documentManage/splitting/modules/SplitAddForm.vue @@ -291,11 +291,11 @@
-
+
{{$t('Add')}} - {{$t('delete')}} + {{$t('delete')}}
@@ -335,12 +335,12 @@
{{$t('addQuantity')}} - +
- + - + - + @@ -556,6 +556,7 @@ loading:false, token:Vue.ls.get(ACCESS_TOKEN), submitFlag:false, + deleteIds:[] } }, props:{ @@ -637,8 +638,17 @@ } }, //删除按钮 - splitDelete(){ + splitDelete(item,index){ + console.log('itme',item,this.contentList) + if(item.id){ + this.deleteIds.push(item.id) + } + for(let i=index;ithis.addIndex;i--){ this.contentList[i+lengthImg-1]=this.contentList[i-1] @@ -764,11 +775,12 @@ this.contentList[++this.addIndex]={ id:'', type:'IMG', - itemContent:item.thumbUrl + itemContent:item.url } }) } this.splitVisible=false + console.log('conteend',this.contentList) }, //点击图片预览 preImg(item){ @@ -828,7 +840,7 @@ this.contentList[this.addIndex+1]= { id:'', type:'TABLE', - content:tableStr + itemContent:tableStr } this.$nextTick(() => { this.$refs.ueditor.setContent(this.ueContent)