From 2af62ddb98e1991d20fecd528951ece6c94edcc4 Mon Sep 17 00:00:00 2001 From: dshclm <3321914460@qq.com> Date: Fri, 1 Nov 2024 09:47:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/property/propertynum/propertynum.html | 16 ++++++++++++++-- .../resources/templates/system/user/add.html | 6 +++--- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/ruoyi-admin/src/main/resources/templates/system/property/propertynum/propertynum.html b/ruoyi-admin/src/main/resources/templates/system/property/propertynum/propertynum.html index af8cb6a..50fe183 100644 --- a/ruoyi-admin/src/main/resources/templates/system/property/propertynum/propertynum.html +++ b/ruoyi-admin/src/main/resources/templates/system/property/propertynum/propertynum.html @@ -366,7 +366,7 @@ }) var rightMain = echarts.init(document.getElementById('rightMain')); axios.post(prefix + '/countBF').then(response => { - if (response.data.code == web_status.SUCCESS){ + if (response.data.code == web_status.SUCCESS && response.data.data.length > 0){ rightMain.setOption({ tooltip: { trigger: 'item' @@ -376,7 +376,7 @@ right: 'right' }, title: { - text: '密品报废统计' + text: '密品报废统计', }, series: [ { @@ -406,6 +406,18 @@ } ] }); + }else { + rightMain.setOption({ + title: { + text: '暂无数据', + x: 'center', + y: 'center', + textStyle: { + fontSize: 14, + fontWeight: 'normal' + } + } + }) } }) diff --git a/ruoyi-admin/src/main/resources/templates/system/user/add.html b/ruoyi-admin/src/main/resources/templates/system/user/add.html index c4bbb32..da00331 100644 --- a/ruoyi-admin/src/main/resources/templates/system/user/add.html +++ b/ruoyi-admin/src/main/resources/templates/system/user/add.html @@ -237,12 +237,12 @@
- + 选择文件 更改 - - + + ×