From 353c99eca9e529eaba3f8d6106c0942acbeb70ec Mon Sep 17 00:00:00 2001 From: bicey Date: Sun, 23 Jun 2024 02:29:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=89=E8=A6=81=E6=B1=82=E4=BF=AE=E6=94=B9v1?= =?UTF-8?q?.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 1 + .env.production | 1 + src/components/ZooAnimalFormDialog.vue | 141 ++++++++++++++++++- src/components/ZooArchiveFormDialog.vue | 32 ++++- src/components/ZooBreedingPlanFormDialog.vue | 34 ++++- src/components/ZooHealthFormDialog.vue | 32 ++++- src/pages/ZooAnimal.vue | 16 ++- src/pages/ZooArchive.vue | 17 ++- src/pages/ZooBreeding.vue | 82 +++++++++-- src/pages/ZooHealth.vue | 16 ++- src/pages/ZooHome.vue | 82 ++++++++--- src/pages/ZooLogin.vue | 5 +- src/pages/ZooPanel.vue | 12 +- src/pages/ZooUser.vue | 3 +- src/store/index.js | 22 ++- src/utils/common.js | 8 ++ src/utils/request.js | 46 +++--- vite.config.js | 40 +++--- 18 files changed, 487 insertions(+), 103 deletions(-) create mode 100644 .env.development create mode 100644 .env.production diff --git a/.env.development b/.env.development new file mode 100644 index 0000000..ce55083 --- /dev/null +++ b/.env.development @@ -0,0 +1 @@ +VITE_BASE_URL='http://localhost:8888' diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..9537b8f --- /dev/null +++ b/.env.production @@ -0,0 +1 @@ +VITE_BASE_URL='http://alb-116396619.us-east-1.elb.amazonaws.com:80' \ No newline at end of file diff --git a/src/components/ZooAnimalFormDialog.vue b/src/components/ZooAnimalFormDialog.vue index df07228..3f67add 100644 --- a/src/components/ZooAnimalFormDialog.vue +++ b/src/components/ZooAnimalFormDialog.vue @@ -1,5 +1,6 @@ @@ -340,7 +344,7 @@ export default { - + diff --git a/src/pages/ZooArchive.vue b/src/pages/ZooArchive.vue index 4355ffb..43297a9 100644 --- a/src/pages/ZooArchive.vue +++ b/src/pages/ZooArchive.vue @@ -2,7 +2,7 @@ import ZooArchiveFormDialog from "@/components/ZooArchiveFormDialog.vue"; import {Delete, DocumentAdd, Document, Edit, Search, Tickets, Timer} from "@element-plus/icons-vue"; import {mapState, mapActions, mapMutations} from "vuex"; -import {copy, splitKeyWords, fuzzyMatching, sortByDateTime} from "@/utils/common.js"; +import {copy, splitKeyWords, fuzzyMatching, sortByDateTime, refreshData} from "@/utils/common.js"; import ZooArchiveTimeline from "@/components/ZooArchiveTimeline.vue"; import request, {frontendArchive, frontendArchives} from "@/utils/request.js"; @@ -59,7 +59,10 @@ export default { return Timer }, //endregion - ...mapState(["archives", 'archivesTableData']) + ...mapState(["archives", 'archivesTableData','loginUser']), + operateWidth() { + return this.loginUser.auth!==0?'250':'130' + } }, watch: { // 搜索框存在输入,自动调用搜索(刷新数据包含搜索) @@ -368,6 +371,7 @@ export default { mounted() { // 加载完成后拉取数据 this.refresh() + refreshData() }, } @@ -375,7 +379,7 @@ export default { + + + + + + + + + + +