|
@@ -11,7 +11,6 @@
|
|
|
:auto-upload="false"
|
|
|
:file-list="listFile">
|
|
|
<el-button icon="el-icon-upload2" type="primary" size="mini" class="inline-16">上传文件</el-button>
|
|
|
- <span>{{title}}</span>
|
|
|
</el-upload>
|
|
|
</template>
|
|
|
|
|
@@ -37,7 +36,16 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
|
- handleRemove(file, fileList) {
|
|
|
+ async handleRemove(file, fileList) {
|
|
|
+ this.$emit('uploadGet')
|
|
|
+ const res = await this.$api.requested({
|
|
|
+ "classname": "system.attachment.Attachment",
|
|
|
+ "method": "deleteFileLink",
|
|
|
+ "content": {
|
|
|
+ "linksids":[file.linksid]
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.$emit('onSuccess',res)
|
|
|
},
|
|
|
handleProgress(file,fileList){
|
|
|
|
|
@@ -122,12 +130,6 @@ export default {
|
|
|
"usetype":""
|
|
|
}
|
|
|
})
|
|
|
- this.$refs.uploadRef.listFile = res.data.map(item=>{
|
|
|
- return {
|
|
|
- "name":item.document,
|
|
|
- "url":item.url
|
|
|
- }
|
|
|
- })
|
|
|
}
|
|
|
}
|
|
|
}
|