diff --git a/src/components/NoteUpload/index.vue b/src/components/NoteUpload/index.vue index 84bcfe18..9956f847 100644 --- a/src/components/NoteUpload/index.vue +++ b/src/components/NoteUpload/index.vue @@ -24,6 +24,7 @@ --> - + @@ -105,6 +106,10 @@ type: Boolean, default: false }, + isClear:{ + type: Boolean, + default: false + } }, data() { return { @@ -119,6 +124,13 @@ } }; }, + watch: { + isClear(val) { + if(!val) { + this.clearFiles(); + } + } + }, computed: { // 是否显示提示 showTip() { @@ -145,8 +157,10 @@ }, }, methods: { + clearFiles() { + this.$refs["myUpload"].clearFiles(); + }, handleUploadRemove(file) { - console.log(file,'file'); this.$emit("remove",file); }, // 上传前校检格式和大小 @@ -220,7 +234,6 @@ } }, created() { - this.fileList = this.list; }, }; diff --git a/src/views/user/Mynotes.vue b/src/views/user/Mynotes.vue index 779c6fc2..9215ee18 100644 --- a/src/views/user/Mynotes.vue +++ b/src/views/user/Mynotes.vue @@ -122,7 +122,7 @@
- +
@@ -419,7 +419,7 @@ export default { publish(){ this.ordertime = !this.ordertime; this.orderType = !this.orderType; - this.orderField = 'sysCreateTime'; + this.orderField = 'sysUpdateTime'; this.noteData(this.num) }, thumbs(){