From c2ce25de03a6e40c876ea9c846667d3a25cb50d3 Mon Sep 17 00:00:00 2001 From: wx-jincw Date: Sun, 20 Apr 2025 09:30:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BB=BB=E5=8A=A1=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=A4=87=E4=BB=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bs-ui/src/components/FileUpload/index.vue | 26 +- bs-ui/src/layout/components/Navbar.vue | 4 +- bs-ui/src/views/gallery/list/index.vue | 43 ++- .../query/components/ImageChooseDialog.vue | 278 ++++++++++++++++++ bs-ui/src/views/system/tag/index.vue | 50 +++- .../other-task/components/AuditDialog.vue | 3 +- .../send/other-task/components/AuditItem.vue | 57 +++- .../send/other-task/components/EditDialog.vue | 126 +++++++- .../send/other-task/components/TagsDialog.vue | 130 ++++++++ 9 files changed, 675 insertions(+), 42 deletions(-) create mode 100644 bs-ui/src/views/gallery/query/components/ImageChooseDialog.vue create mode 100644 bs-ui/src/views/task-distribut/send/other-task/components/TagsDialog.vue diff --git a/bs-ui/src/components/FileUpload/index.vue b/bs-ui/src/components/FileUpload/index.vue index 8df7012..8bcba9e 100644 --- a/bs-ui/src/components/FileUpload/index.vue +++ b/bs-ui/src/components/FileUpload/index.vue @@ -9,24 +9,32 @@ :on-error="handleUploadError" :on-exceed="handleExceed" :on-success="handleUploadSuccess" - :show-file-list="false" + :show-file-list="imageOnly" :headers="headers" + :on-remove="handleRemove" + :list-type="imageOnly?'picture-card':'text'" class="upload-file-uploader" ref="fileUpload" > - - 选取文件 - + + + - +
  • {{ getFileName(file.oldName) }} @@ -66,6 +74,10 @@ export default { isShowTip: { type: Boolean, default: true + }, + imageOnly: { + type: Boolean, + default: false, } }, data() { @@ -161,6 +173,10 @@ export default { this.uploadedSuccessfully(); } }, + handleRemove(file) { + this.fileList = this.fileList.filter(item => item !== file); + this.$emit("input", this.fileList); + }, // 删除文件 handleDelete(index) { this.fileList.splice(index, 1); diff --git a/bs-ui/src/layout/components/Navbar.vue b/bs-ui/src/layout/components/Navbar.vue index 62a50c7..6a9d4da 100644 --- a/bs-ui/src/layout/components/Navbar.vue +++ b/bs-ui/src/layout/components/Navbar.vue @@ -5,7 +5,9 @@ - +