From ebb0dafc823f996828dbcc8c2600a59a9bda344b Mon Sep 17 00:00:00 2001 From: maxmon <541182180@qq.com> Date: Wed, 10 Aug 2022 08:19:30 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=8B=9F=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E4=B8=8B=E4=B8=80=E9=A1=B5=E6=97=B6=E4=B8=8D=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E4=B8=8B=E6=96=B9=E7=9A=84=E7=AC=AC2=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fe/src/components/NER/index.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/fe/src/components/NER/index.vue b/fe/src/components/NER/index.vue index eac4e44..49764d9 100644 --- a/fe/src/components/NER/index.vue +++ b/fe/src/components/NER/index.vue @@ -16,8 +16,8 @@
- 上页 - {{pageNumber}} + 上页 + {{pageNumber}} 下页
导出json结果
@@ -197,6 +197,7 @@ export default { configCanCtlType: isLocal, // 是否支持实体类型的调整 pageNumber: 1, pageSize: 20, + isLoadingPage: false, inputType: '', projectName: '', // 项目名称 projectType: '', // 项目类型 @@ -269,7 +270,9 @@ export default { // 获取文件列表 getFiles () { const that = this + that.isLoadingPage = true get(`/v1/files/query?projectName=${that.projectName}&pageNumber=${that.pageNumber}&pageSize=${that.pageSize}`, function (info) { + that.isLoadingPage = false if (!info || info.length === 0) { that.pageNumber -= 1 }