From da63017221445802b312f463c3c122b1a88745dc Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期一, 28 十月 2024 11:52:45 +0800
Subject: [PATCH] 2024-10-28

---
 src/tabviews/custom/components/table/edit-table/normalTable/index.jsx |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/tabviews/custom/components/table/edit-table/normalTable/index.jsx b/src/tabviews/custom/components/table/edit-table/normalTable/index.jsx
index 6e3aeef..c5678a8 100644
--- a/src/tabviews/custom/components/table/edit-table/normalTable/index.jsx
+++ b/src/tabviews/custom/components/table/edit-table/normalTable/index.jsx
@@ -1210,6 +1210,9 @@
           }
           if (col.format === 'percent') {
             content = content * 100
+            if (!col.round) {
+              content = +content.toFixed(2)
+            }
           } else if (col.format === 'abs') {
             content = Math.abs(content)
           }
@@ -1965,7 +1968,7 @@
       deffers.push(
         new Promise(resolve => {
           Api.getSystemCacheConfig(param, false).then(res => {
-            if (!res.status) {
+            if (!res.status && res.ErrCode !== '-2') {
               notification.warning({
                 top: 92,
                 message: res.message,
@@ -2004,7 +2007,7 @@
       deffers.push(
         new Promise(resolve => {
           Api.getSystemCacheConfig(mainparam, false).then(res => {
-            if (!res.status) {
+            if (!res.status && res.ErrCode !== '-2') {
               notification.warning({
                 top: 92,
                 message: res.message,
@@ -2099,7 +2102,7 @@
     deffers = deffers.map(item => {
       return new Promise(resolve => {
         Api.getSystemCacheConfig(item, false).then(res => {
-          if (!res.status) {
+          if (!res.status && res.ErrCode !== '-2') {
             notification.warning({
               top: 92,
               message: res.message,

--
Gitblit v1.8.0