From 6849e7ccae618cb0dc491b52eeb24a31fd9246b8 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Mon, 25 Mar 2024 15:31:54 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=95=B0=E6=8D=AE=E9=9B=86):=20=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=AF=BC=E5=87=BA-=E5=90=8E=E5=8F=B0=E5=AF=BC?= =?UTF-8?q?=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/frontend/src/assets/none-data.png | Bin 0 -> 1788 bytes .../icons/svg/icon_file-excel_colorful.svg | 5 + .../frontend/src/layout/components/Topbar.vue | 30 ++- core/frontend/src/styles/index.scss | 53 +++++ .../src/views/dataset/exportExcel/index.vue | 220 ++++++++++++++++++ 5 files changed, 306 insertions(+), 2 deletions(-) create mode 100644 core/frontend/src/assets/none-data.png create mode 100644 core/frontend/src/icons/svg/icon_file-excel_colorful.svg create mode 100644 core/frontend/src/views/dataset/exportExcel/index.vue diff --git a/core/frontend/src/assets/none-data.png b/core/frontend/src/assets/none-data.png new file mode 100644 index 0000000000000000000000000000000000000000..dacec6a35210a75999b022faab4cd93405dec97f GIT binary patch literal 1788 zcmb_c`BxGM5XMy2G|kcysk9QWJXp^>!c7-7cf$iba6MdGo{MxVt(l%7f(r0Dz*)88}jc z8Inks14?p8H$z7PyW`LJCISEoD&Ip2P+1L<6r~c8&JF+~_3$SNkqNg)*aHBqg$mn& zvH$?E$OUfiiIrMrvf@yopr7~)u=>z{_82L3k;jZd`9AprhTvlu!;2ATuRiu3%hvM3xf1KoE2>{k(xRw_#)1@ zQ~y5Yt+7~`Ub~P!h2JkF+2e=xs7_^sRC5}w^mF?zf02o#)+v9?hr$i+n(Ld!fVD?& z7-B7TcIHqI@(pOnS z+Y9qXujP&svM}n)$Va%cN)xW)l*WN6iYDsN?sWc+6YTHTJQh1Gyat-Mv4q zg)p_SXzBByL=^jtZkM+iVXm2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V zRJQHnHm5{v>u+UkZ6VHTTF_KdwCup!uBCI{a@CDTRJu1W=}wq)A)Dp;^+z|Is{z%4;UP5djJ3c literal 0 HcmV?d00001 diff --git a/core/frontend/src/icons/svg/icon_file-excel_colorful.svg b/core/frontend/src/icons/svg/icon_file-excel_colorful.svg new file mode 100644 index 0000000000..22cb869537 --- /dev/null +++ b/core/frontend/src/icons/svg/icon_file-excel_colorful.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/core/frontend/src/layout/components/Topbar.vue b/core/frontend/src/layout/components/Topbar.vue index 87df0f5bab..2533e1c051 100644 --- a/core/frontend/src/layout/components/Topbar.vue +++ b/core/frontend/src/layout/components/Topbar.vue @@ -45,6 +45,12 @@ class="right-menu" style="color: var(--TopTextColor)" > +
+ +
+ import { mapGetters } from 'vuex' +import ExportExcel from '@/views/dataset/exportExcel/index.vue' import AppLink from './Sidebar/Link' import variables from '@/styles/variables.scss' import { isExternal } from '@/utils/validate' @@ -143,8 +151,8 @@ export default { TemplateMarket, AppLink, Notification, - LangSelect - + LangSelect, + ExportExcel }, props: { showTips: { @@ -278,6 +286,10 @@ export default { beforeunloadHandler() { this.beforeUnload_time = new Date().getTime() }, + downloadClick() { + console.log('this.$refs.ExportExcelRef', this.$refs.ExportExcelRef) + this.$refs.ExportExcelRef.init() + }, unloadHandler(e) { this.gap_time = new Date().getTime() - this.beforeUnload_time if (this.gap_time <= 5) { @@ -431,6 +443,20 @@ export default {