From 9005eb74abd44fef1817b403fec121c0cae53274 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=AC=A3=E5=81=A5?= <837099748@qq.com> Date: Wed, 14 Jul 2021 11:28:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=89=80=E6=9C=89=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E3=80=81=E5=AF=BC=E5=87=BA=E5=92=8C=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E7=AD=89=E5=BE=85=E7=9A=84=E7=94=A8=E6=88=B7=E4=BD=93=E9=AA=8C?= =?UTF-8?q?=20=E4=BF=AE=E5=A4=8D=E7=AC=AC=E4=BA=8C=E9=A1=B5=E5=8F=AA?= =?UTF-8?q?=E6=9C=89=E4=B8=80=E6=9D=A1=E6=95=B0=E6=8D=AE=E5=A6=82=E6=9E=9C?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E9=A1=B5=E9=9D=A2=E6=98=BE=E7=A4=BA=E6=97=A0?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=EF=BC=8C=E5=88=86=E9=A1=B5=E9=82=A3=E9=87=8C?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=80=89=E4=B8=AD=E7=9A=84=E7=AC=AC=E4=B8=80?= =?UTF-8?q?=E9=A1=B5=E7=9A=84bug=20=E4=BF=AE=E5=A4=8D=E5=88=86=E9=A1=B5?= =?UTF-8?q?=E9=A1=B5=E6=95=B0=E6=88=90=E5=B0=8F=E6=95=B0=E7=9A=84bug=20?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=89=80=E6=9C=89=E6=B7=BB=E5=8A=A0=E5=88=A0?= =?UTF-8?q?=E9=99=A4dialog=E7=82=B9=E5=87=BBmodel=E4=B8=8D=E4=BC=9A?= =?UTF-8?q?=E5=85=B3=E9=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/vm/vue/index-tree.vue.vm | 1078 ++++++++--------- ruoyi-ui/src/views/monitor/job/index.vue | 4 +- ruoyi-ui/src/views/monitor/job/log.vue | 4 +- ruoyi-ui/src/views/monitor/online/index.vue | 4 +- ruoyi-ui/src/views/system/config/index.vue | 6 +- ruoyi-ui/src/views/system/dept/index.vue | 2 +- ruoyi-ui/src/views/system/dict/data.vue | 6 +- ruoyi-ui/src/views/system/dict/index.vue | 6 +- .../src/views/system/logininfor/index.vue | 4 +- ruoyi-ui/src/views/system/menu/index.vue | 2 +- ruoyi-ui/src/views/system/notice/index.vue | 6 +- ruoyi-ui/src/views/system/operlog/index.vue | 4 +- ruoyi-ui/src/views/system/post/index.vue | 6 +- ruoyi-ui/src/views/system/role/authUser.vue | 4 +- ruoyi-ui/src/views/system/role/index.vue | 4 +- ruoyi-ui/src/views/system/role/selectUser.vue | 6 +- ruoyi-ui/src/views/system/user/index.vue | 6 +- .../views/system/user/profile/userAvatar.vue | 344 +++--- ruoyi-ui/src/views/tool/gen/index.vue | 4 +- 19 files changed, 750 insertions(+), 750 deletions(-) diff --git a/ruoyi-modules/ruoyi-gen/src/main/resources/vm/vue/index-tree.vue.vm b/ruoyi-modules/ruoyi-gen/src/main/resources/vm/vue/index-tree.vue.vm index ab870681..e7d444c5 100644 --- a/ruoyi-modules/ruoyi-gen/src/main/resources/vm/vue/index-tree.vue.vm +++ b/ruoyi-modules/ruoyi-gen/src/main/resources/vm/vue/index-tree.vue.vm @@ -1,539 +1,539 @@ - - - + + + diff --git a/ruoyi-ui/src/views/monitor/job/index.vue b/ruoyi-ui/src/views/monitor/job/index.vue index 9871a613..f9ef4a7b 100644 --- a/ruoyi-ui/src/views/monitor/job/index.vue +++ b/ruoyi-ui/src/views/monitor/job/index.vue @@ -334,8 +334,8 @@ export default { getList() { this.loading = true; listJob(this.queryParams).then(response => { - let currentPageNum = response.total / this.queryParams.pageSize; - if(this.queryParams.pageNum > currentPageNum){ + let currentPageNum = response.total % this.queryParams.pageSize > 0 ? parseInt(response.total / this.queryParams.pageSize) + 1 : (response.total / this.queryParams.pageSize); + if(currentPageNum !== 0 && currentPageNum !== 0 && this.queryParams.pageNum > currentPageNum){ this.queryParams.pageNum = currentPageNum; } this.jobList = response.rows; diff --git a/ruoyi-ui/src/views/monitor/job/log.vue b/ruoyi-ui/src/views/monitor/job/log.vue index 5aa702f4..572bb47e 100644 --- a/ruoyi-ui/src/views/monitor/job/log.vue +++ b/ruoyi-ui/src/views/monitor/job/log.vue @@ -219,8 +219,8 @@ export default { getList() { this.loading = true; listJobLog(this.addDateRange(this.queryParams, this.dateRange)).then(response => { - let currentPageNum = response.total / this.queryParams.pageSize; - if(this.queryParams.pageNum > currentPageNum){ + let currentPageNum = response.total % this.queryParams.pageSize > 0 ? parseInt(response.total / this.queryParams.pageSize) + 1 : (response.total / this.queryParams.pageSize); + if(currentPageNum !== 0 && currentPageNum !== 0 && this.queryParams.pageNum > currentPageNum){ this.queryParams.pageNum = currentPageNum; } this.jobLogList = response.rows; diff --git a/ruoyi-ui/src/views/monitor/online/index.vue b/ruoyi-ui/src/views/monitor/online/index.vue index 99c54f65..963ed4f1 100644 --- a/ruoyi-ui/src/views/monitor/online/index.vue +++ b/ruoyi-ui/src/views/monitor/online/index.vue @@ -90,8 +90,8 @@ export default { getList() { this.loading = true; list(this.queryParams).then(response => { - let currentPageNum = response.total / this.queryParams.pageSize; - if(this.queryParams.pageNum > currentPageNum){ + let currentPageNum = response.total % this.queryParams.pageSize > 0 ? parseInt(response.total / this.queryParams.pageSize) + 1 : (response.total / this.queryParams.pageSize); + if(currentPageNum !== 0 && currentPageNum !== 0 && this.queryParams.pageNum > currentPageNum){ this.queryParams.pageNum = currentPageNum; } this.list = response.rows; diff --git a/ruoyi-ui/src/views/system/config/index.vue b/ruoyi-ui/src/views/system/config/index.vue index cd0c615c..bfc36713 100644 --- a/ruoyi-ui/src/views/system/config/index.vue +++ b/ruoyi-ui/src/views/system/config/index.vue @@ -149,7 +149,7 @@ /> - + @@ -254,8 +254,8 @@ export default { getList() { this.loading = true; listConfig(this.addDateRange(this.queryParams, this.dateRange)).then(response => { - let currentPageNum = response.total / this.queryParams.pageSize; - if(this.queryParams.pageNum > currentPageNum){ + let currentPageNum = response.total % this.queryParams.pageSize > 0 ? parseInt(response.total / this.queryParams.pageSize) + 1 : (response.total / this.queryParams.pageSize); + if(currentPageNum !== 0 && currentPageNum !== 0 && this.queryParams.pageNum > currentPageNum){ this.queryParams.pageNum = currentPageNum; } this.configList = response.rows; diff --git a/ruoyi-ui/src/views/system/dept/index.vue b/ruoyi-ui/src/views/system/dept/index.vue index 82418618..767fe07e 100644 --- a/ruoyi-ui/src/views/system/dept/index.vue +++ b/ruoyi-ui/src/views/system/dept/index.vue @@ -84,7 +84,7 @@ - + diff --git a/ruoyi-ui/src/views/system/dict/data.vue b/ruoyi-ui/src/views/system/dict/data.vue index b9826a62..77f6c328 100644 --- a/ruoyi-ui/src/views/system/dict/data.vue +++ b/ruoyi-ui/src/views/system/dict/data.vue @@ -133,7 +133,7 @@ /> - + @@ -291,8 +291,8 @@ export default { getList() { this.loading = true; listData(this.queryParams).then(response => { - let currentPageNum = response.total / this.queryParams.pageSize; - if(this.queryParams.pageNum > currentPageNum){ + let currentPageNum = response.total % this.queryParams.pageSize > 0 ? parseInt(response.total / this.queryParams.pageSize) + 1 : (response.total / this.queryParams.pageSize); + if(currentPageNum !== 0 && currentPageNum !== 0 && this.queryParams.pageNum > currentPageNum){ this.queryParams.pageNum = currentPageNum; } this.dataList = response.rows; diff --git a/ruoyi-ui/src/views/system/dict/index.vue b/ruoyi-ui/src/views/system/dict/index.vue index 2f93e880..f7fba510 100644 --- a/ruoyi-ui/src/views/system/dict/index.vue +++ b/ruoyi-ui/src/views/system/dict/index.vue @@ -164,7 +164,7 @@ /> - + @@ -263,8 +263,8 @@ export default { getList() { this.loading = true; listType(this.addDateRange(this.queryParams, this.dateRange)).then(response => { - let currentPageNum = response.total / this.queryParams.pageSize; - if(this.queryParams.pageNum > currentPageNum){ + let currentPageNum = response.total % this.queryParams.pageSize > 0 ? parseInt(response.total / this.queryParams.pageSize) + 1 : (response.total / this.queryParams.pageSize); + if(currentPageNum !== 0 && currentPageNum !== 0 && this.queryParams.pageNum > currentPageNum){ this.queryParams.pageNum = currentPageNum; } this.typeList = response.rows; diff --git a/ruoyi-ui/src/views/system/logininfor/index.vue b/ruoyi-ui/src/views/system/logininfor/index.vue index e410cdf9..86788b0c 100644 --- a/ruoyi-ui/src/views/system/logininfor/index.vue +++ b/ruoyi-ui/src/views/system/logininfor/index.vue @@ -160,8 +160,8 @@ export default { getList() { this.loading = true; list(this.addDateRange(this.queryParams, this.dateRange)).then(response => { - let currentPageNum = response.total / this.queryParams.pageSize; - if(this.queryParams.pageNum > currentPageNum){ + let currentPageNum = response.total % this.queryParams.pageSize > 0 ? parseInt(response.total / this.queryParams.pageSize) + 1 : (response.total / this.queryParams.pageSize); + if(currentPageNum !== 0 && currentPageNum !== 0 && this.queryParams.pageNum > currentPageNum){ this.queryParams.pageNum = currentPageNum; } this.list = response.rows; diff --git a/ruoyi-ui/src/views/system/menu/index.vue b/ruoyi-ui/src/views/system/menu/index.vue index 6da72937..b5239187 100644 --- a/ruoyi-ui/src/views/system/menu/index.vue +++ b/ruoyi-ui/src/views/system/menu/index.vue @@ -88,7 +88,7 @@ - + diff --git a/ruoyi-ui/src/views/system/notice/index.vue b/ruoyi-ui/src/views/system/notice/index.vue index 504d1276..3c48a325 100644 --- a/ruoyi-ui/src/views/system/notice/index.vue +++ b/ruoyi-ui/src/views/system/notice/index.vue @@ -129,7 +129,7 @@ /> - + @@ -248,8 +248,8 @@ export default { getList() { this.loading = true; listNotice(this.queryParams).then(response => { - let currentPageNum = response.total / this.queryParams.pageSize; - if(this.queryParams.pageNum > currentPageNum){ + let currentPageNum = response.total % this.queryParams.pageSize > 0 ? parseInt(response.total / this.queryParams.pageSize) + 1 : (response.total / this.queryParams.pageSize); + if(currentPageNum !== 0 && currentPageNum !== 0 && this.queryParams.pageNum > currentPageNum){ this.queryParams.pageNum = currentPageNum; } this.noticeList = response.rows; diff --git a/ruoyi-ui/src/views/system/operlog/index.vue b/ruoyi-ui/src/views/system/operlog/index.vue index 0b7cef33..efcd6804 100644 --- a/ruoyi-ui/src/views/system/operlog/index.vue +++ b/ruoyi-ui/src/views/system/operlog/index.vue @@ -241,8 +241,8 @@ export default { getList() { this.loading = true; list(this.addDateRange(this.queryParams, this.dateRange)).then( response => { - let currentPageNum = response.total / this.queryParams.pageSize; - if(this.queryParams.pageNum > currentPageNum){ + let currentPageNum = response.total % this.queryParams.pageSize > 0 ? parseInt(response.total / this.queryParams.pageSize) + 1 : (response.total / this.queryParams.pageSize); + if(currentPageNum !== 0 && currentPageNum !== 0 && this.queryParams.pageNum > currentPageNum){ this.queryParams.pageNum = currentPageNum; } this.list = response.rows; diff --git a/ruoyi-ui/src/views/system/post/index.vue b/ruoyi-ui/src/views/system/post/index.vue index 48277d17..bf3679fd 100644 --- a/ruoyi-ui/src/views/system/post/index.vue +++ b/ruoyi-ui/src/views/system/post/index.vue @@ -123,7 +123,7 @@ /> - + @@ -224,8 +224,8 @@ export default { getList() { this.loading = true; listPost(this.queryParams).then(response => { - let currentPageNum = response.total / this.queryParams.pageSize; - if(this.queryParams.pageNum > currentPageNum){ + let currentPageNum = response.total % this.queryParams.pageSize > 0 ? parseInt(response.total / this.queryParams.pageSize) + 1 : (response.total / this.queryParams.pageSize); + if(currentPageNum !== 0 && currentPageNum !== 0 && this.queryParams.pageNum > currentPageNum){ this.queryParams.pageNum = currentPageNum; } this.postList = response.rows; diff --git a/ruoyi-ui/src/views/system/role/authUser.vue b/ruoyi-ui/src/views/system/role/authUser.vue index 45ce9fc7..50f6fb16 100644 --- a/ruoyi-ui/src/views/system/role/authUser.vue +++ b/ruoyi-ui/src/views/system/role/authUser.vue @@ -149,8 +149,8 @@ export default { getList() { this.loading = true; allocatedUserList(this.queryParams).then(response => { - let currentPageNum = response.total / this.queryParams.pageSize; - if(this.queryParams.pageNum > currentPageNum){ + let currentPageNum = response.total % this.queryParams.pageSize > 0 ? parseInt(response.total / this.queryParams.pageSize) + 1 : (response.total / this.queryParams.pageSize); + if(currentPageNum !== 0 && currentPageNum !== 0 && this.queryParams.pageNum > currentPageNum){ this.queryParams.pageNum = currentPageNum; } this.userList = response.rows; diff --git a/ruoyi-ui/src/views/system/role/index.vue b/ruoyi-ui/src/views/system/role/index.vue index ab85d5ab..37f7608b 100644 --- a/ruoyi-ui/src/views/system/role/index.vue +++ b/ruoyi-ui/src/views/system/role/index.vue @@ -163,7 +163,7 @@ /> - + @@ -209,7 +209,7 @@ - + diff --git a/ruoyi-ui/src/views/system/role/selectUser.vue b/ruoyi-ui/src/views/system/role/selectUser.vue index e20114bb..7d2542c9 100644 --- a/ruoyi-ui/src/views/system/role/selectUser.vue +++ b/ruoyi-ui/src/views/system/role/selectUser.vue @@ -1,6 +1,6 @@