From 2a7e4734949f47b23e44b8df3ffbb5c83bf68397 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=AF=E5=B0=8F=E7=8E=8B=E5=91=80=5C24601?= <819653817@qq.com> Date: Tue, 25 Feb 2025 13:40:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E5=B8=83=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../base/smartExcel/cpts/picture-Info.vue | 71 ++-- .../base/smartExcel/cpts/share-excel.vue | 329 ++++++++++++++++++ .../modules/base/smartExcel/sharedSpace.vue | 14 +- 3 files changed, 363 insertions(+), 51 deletions(-) create mode 100644 src/views/modules/base/smartExcel/cpts/share-excel.vue diff --git a/src/views/modules/base/smartExcel/cpts/picture-Info.vue b/src/views/modules/base/smartExcel/cpts/picture-Info.vue index c8bf50762..817b18f87 100644 --- a/src/views/modules/base/smartExcel/cpts/picture-Info.vue +++ b/src/views/modules/base/smartExcel/cpts/picture-Info.vue @@ -1,42 +1,23 @@ @@ -62,26 +43,11 @@ data() { return { fileList:[], - sharingScopeList:[ - { - value:"0", - label:"仅本部门内共享" - }, - { - value:"1", - label:"本级和直接下级组织共享" - }, - { - value:"2", - label:"本级和直接上级组织共享" - }, - { - value:"3", - label:"本级和直接上下级组织共享" - }, - ], formData: { + id:"1001", + src:"https://elink-esua-epdc.oss-cn-qingdao.aliyuncs.com/epmet-saas/dev/20250224/8b8a174ea85e48e684267ce1a3f10dd1.jpg", + title:"嘉定山社区网格巡查" }, corganizerList: [], uploadUrl: window.SITE_CONFIG['apiURL'] + '/oss/file/uploadqrcodeV2', @@ -211,7 +177,12 @@ async handleComfirm() { - this.addActivity() + const link = document.createElement('a'); + link.href = this.formData.src; + link.download = this.formData.title; + document.body.appendChild(link); + link.click(); + document.body.removeChild(link); }, async addActivity() { let url = '/voluntary/newsTrends/saveOrUpdate' diff --git a/src/views/modules/base/smartExcel/cpts/share-excel.vue b/src/views/modules/base/smartExcel/cpts/share-excel.vue new file mode 100644 index 000000000..ff729377c --- /dev/null +++ b/src/views/modules/base/smartExcel/cpts/share-excel.vue @@ -0,0 +1,329 @@ + + + \ No newline at end of file diff --git a/src/views/modules/base/smartExcel/sharedSpace.vue b/src/views/modules/base/smartExcel/sharedSpace.vue index 57e16b0da..9e17886d2 100644 --- a/src/views/modules/base/smartExcel/sharedSpace.vue +++ b/src/views/modules/base/smartExcel/sharedSpace.vue @@ -30,7 +30,7 @@ @@ -338,6 +338,18 @@ } + } + .yellow{ + color: #ddaa5d; + } + .blue{ + color: #4e89ec; + } + .red{ + color: #fc2b3b; + } + .green{ + color: #2fcbbd; } .f-align_item { width: 100px;