From fbfe426c2fce8d134dfff26e575e30a00497a7cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=BE=E8=82=83?= <15833576927@163.com> Date: Wed, 22 May 2024 16:46:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=BA=E5=9C=B0=E7=AE=A1=E7=90=86=E5=AF=BC?= =?UTF-8?q?=E5=87=BAExcel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + src/views/basicData/breedingBase/index.vue | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 64acdfc..9335039 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "@vueuse/core": "10.9.0", "axios": "1.6.8", "babel-plugin-import": "^1.13.8", + "dayjs": "^1.11.11", "echarts": "5.5.0", "element-china-area-data": "^6.1.0", "element-plus": "2.7.3", diff --git a/src/views/basicData/breedingBase/index.vue b/src/views/basicData/breedingBase/index.vue index 579d2f5..6f84750 100644 --- a/src/views/basicData/breedingBase/index.vue +++ b/src/views/basicData/breedingBase/index.vue @@ -101,6 +101,7 @@ import {pcTextArr, provinceAndCityData} from "element-china-area-data"; import BreedingBaseForm from "@/views/basicData/breedingBase/breedingBaseForm.vue"; import {ElMessage, ElMessageBox} from "element-plus"; import {breedingBaseDeleteById, selBreedingBasePage} from "@/api/basicData/breedingBaseApi.js"; +import dayjs from "dayjs"; // 表单绑定 const breedingBaseFormRef = ref(null) const router = useRouter(); @@ -125,7 +126,9 @@ const columns = ref([ { key: 8, label: `创建时间`, visible: true }, ]); const exportExcel = () => { - + proxy.download("/baseNurseryInfo/export", { + ...queryParams.value, + },`智能育种基地/种质资源圃列表-${dayjs().format('YYYY年MM月DD日')}.xlsx`); } const data = reactive({ form: {},