From 8412fbd2afe09b81b08cd41c08c9166b12106a43 Mon Sep 17 00:00:00 2001 From: liushilong <2224574157@qq.com> Date: Fri, 22 Mar 2024 11:44:41 +0800 Subject: [PATCH 1/4] =?UTF-8?q?feat:=20=E6=9C=8D=E5=8A=A1=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E6=AD=A3=E5=B8=B8=E4=B8=8B=EF=BC=8C=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=E5=88=87=E6=8D=A2=E8=87=B3=E7=9F=AD=E4=BF=A1?= =?UTF-8?q?=E7=99=BB=E5=BD=95=EF=BC=8C=E8=BE=93=E5=85=A5=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=88=96=E8=BE=93=E5=85=A5=E6=AD=A3=E7=A1=AE?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=82=B9=E5=87=BB=E7=99=BB=E5=BD=95=E5=90=8E?= =?UTF-8?q?=EF=BC=8C=E7=99=BB=E5=BD=95=E6=8C=89=E9=92=AE=E5=A7=8B=E7=BB=88?= =?UTF-8?q?=E5=A4=84=E4=BA=8ELoading=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/login/components/Forget.vue | 2 ++ src/views/login/components/Login.vue | 1 + 2 files changed, 3 insertions(+) diff --git a/src/views/login/components/Forget.vue b/src/views/login/components/Forget.vue index cc9b500..d0e8d42 100644 --- a/src/views/login/components/Forget.vue +++ b/src/views/login/components/Forget.vue @@ -135,6 +135,7 @@ function handleSure(e) { } function close() { + loading.value = false; emit("close"); } @@ -177,6 +178,7 @@ function startCount() { } function forget() { + loading.value = false; emit("forget"); } diff --git a/src/views/login/components/Login.vue b/src/views/login/components/Login.vue index f23f6c8..99a1097 100644 --- a/src/views/login/components/Login.vue +++ b/src/views/login/components/Login.vue @@ -141,6 +141,7 @@ function close() { } function switchTab(type: number) { + loading.value = false; tab.value = type; } From ef40bc7c090be8e70e13be2cf8a4a50febfe9777 Mon Sep 17 00:00:00 2001 From: liushilong <2224574157@qq.com> Date: Fri, 22 Mar 2024 15:34:12 +0800 Subject: [PATCH 2/4] =?UTF-8?q?feat:=20=E8=B0=83=E6=95=B4=E5=88=86?= =?UTF-8?q?=E9=A1=B5=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 4 +++- patches/naive-ui+2.38.1.patch | 13 +++++++++++++ src/views/final/comp/FilterModal.vue | 1 + src/views/final/comp/RepeatTaskTableModal.vue | 1 + src/views/final/content/Content.vue | 1 + src/views/home/aside/comp/AdvanceFilter.vue | 2 +- src/views/home/aside/comp/modals/FilterModal.vue | 8 +++++--- 7 files changed, 25 insertions(+), 5 deletions(-) create mode 100644 patches/naive-ui+2.38.1.patch diff --git a/package.json b/package.json index 8960260..9a6bcc5 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,8 @@ "lint": "eslint .", "lint:fix": "eslint . --fix", "cleanup": "rimraf node_modules && rimraf pnpm-lock.yaml", - "prepare": "husky install" + "prepare": "husky install", + "postinstall": "patch-package" }, "dependencies": { "@vueup/vue-quill": "^1.2.0", @@ -26,6 +27,7 @@ "mitt": "^3.0.1", "mockjs": "^1.1.0", "naive-ui": "^2.38.1", + "patch-package": "^8.0.0", "pinia": "^2.0.33", "qs": "^6.11.2", "sortablejs": "^1.15.1", diff --git a/patches/naive-ui+2.38.1.patch b/patches/naive-ui+2.38.1.patch new file mode 100644 index 0000000..5c4f5c6 --- /dev/null +++ b/patches/naive-ui+2.38.1.patch @@ -0,0 +1,13 @@ +diff --git a/node_modules/naive-ui/es/pagination/src/Pagination.mjs b/node_modules/naive-ui/es/pagination/src/Pagination.mjs +index 5bd975b..e1c6ebc 100644 +--- a/node_modules/naive-ui/es/pagination/src/Pagination.mjs ++++ b/node_modules/naive-ui/es/pagination/src/Pagination.mjs +@@ -702,7 +702,7 @@ export default defineComponent({ + theme: mergedTheme.peers.Input, + themeOverrides: mergedTheme.peerOverrides.Input, + onChange: handleQuickJumperChange +- })) : null; ++ }),h('span',{},'页')) : null; + default: + return null; + } diff --git a/src/views/final/comp/FilterModal.vue b/src/views/final/comp/FilterModal.vue index afbe8f1..df8672b 100644 --- a/src/views/final/comp/FilterModal.vue +++ b/src/views/final/comp/FilterModal.vue @@ -107,6 +107,7 @@ const pagination = reactive({ value: 50, }, ], + showQuickJumper: true, }); const tableData = ref>([]); const keyword = ref(""); diff --git a/src/views/final/comp/RepeatTaskTableModal.vue b/src/views/final/comp/RepeatTaskTableModal.vue index 2bda333..459d666 100644 --- a/src/views/final/comp/RepeatTaskTableModal.vue +++ b/src/views/final/comp/RepeatTaskTableModal.vue @@ -121,6 +121,7 @@ const pagination = reactive({ value: 50, }, ], + showQuickJumper: true, }) const tableData = ref>([]) const selectionIds = ref([]) diff --git a/src/views/final/content/Content.vue b/src/views/final/content/Content.vue index 763a26d..d98651d 100644 --- a/src/views/final/content/Content.vue +++ b/src/views/final/content/Content.vue @@ -397,6 +397,7 @@ const pagination = reactive({ value: 50, }, ], + showQuickJumper: true, }) const tableData = ref>([]) const selectionIds = ref([]) diff --git a/src/views/home/aside/comp/AdvanceFilter.vue b/src/views/home/aside/comp/AdvanceFilter.vue index cbd6589..f6f5c52 100644 --- a/src/views/home/aside/comp/AdvanceFilter.vue +++ b/src/views/home/aside/comp/AdvanceFilter.vue @@ -1,5 +1,5 @@