From 7e161197df6c20a433c309ca823e6475f4e8c50d Mon Sep 17 00:00:00 2001 From: From-wh Date: Mon, 12 Jun 2023 18:38:09 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=B8=8A=E4=BC=A0=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/src/components/uploadImg/index.vue | 359 ++++++++++++++++++ .../src/components/uploadPictures/index.vue | 25 +- 2 files changed, 381 insertions(+), 3 deletions(-) create mode 100644 template/admin/src/components/uploadImg/index.vue diff --git a/template/admin/src/components/uploadImg/index.vue b/template/admin/src/components/uploadImg/index.vue new file mode 100644 index 000000000..1272ea210 --- /dev/null +++ b/template/admin/src/components/uploadImg/index.vue @@ -0,0 +1,359 @@ + + + + diff --git a/template/admin/src/components/uploadPictures/index.vue b/template/admin/src/components/uploadPictures/index.vue index 6241bab4a..148e86a8c 100644 --- a/template/admin/src/components/uploadPictures/index.vue +++ b/template/admin/src/components/uploadPictures/index.vue @@ -34,7 +34,21 @@ v-if="isShow !== 0" >使用选中图片 - --> + + + + @@ -146,9 +161,10 @@ import { } from '@/api/uploadPictures'; import Setting from '@/setting'; import { getCookies } from '@/libs/util'; +import uploadImg from '@/components/uploadImg'; export default { name: 'uploadPictures', - // components: { editFrom }, + components: { uploadImg }, props: { isChoice: { type: String, @@ -211,6 +227,9 @@ export default { this.getFileList(); }, methods: { + uploadModal() { + this.$refs.upload.uploadModal = true; + }, enterMouse(item) { item.realName = !item.realName; },