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: {},