Forráskód Böngészése

优化服务监测代码为 setup 模式

yanglzh 10 hónapja
szülő
commit
985e9144fc
2 módosított fájl, 508 hozzáadás és 732 törlés
  1. 6 37
      src/utils/dataUiOptions.ts
  2. 502 695
      src/views/system/monitor/server/index.vue

+ 6 - 37
src/utils/dataUiOptions.ts

@@ -174,7 +174,7 @@ export function getPieData({ datas = [] as number[][], legend = [] as string[],
   return { config, dataset }
 }
 
-export function getGaugeData({ value = 50, width = 500, height = 1300 }) {
+export function getGaugeData({ value = 50 }) {
 
   const config = {
     "responsive": false,
@@ -221,52 +221,21 @@ export function getGaugeData({ value = 50, width = 500, height = 1300 }) {
         "legend": {
           "fontSize": 48,
           "prefix": "",
-          "suffix": "",
+          "suffix": "%",
           "roundingValue": 1,
-          "showPlusSymbol": true,
+          "showPlusSymbol": false,
           "useRatingColor": true,
           "color": "#1A1A1Aff",
           "formatter": null
         },
         "title": {
-          "text": "Title",
-          "color": "#1A1A1Aff",
-          "fontSize": 20,
-          "bold": true,
-          "textAlign": "center",
-          "paddingLeft": 0,
-          "paddingRight": 0,
-          "subtitle": {
-            "color": "#A1A1A1ff",
-            "text": "",
-            "fontSize": 16,
-            "bold": false
-          }
+          "text": " ",
+          "show": true,
         }
       }
     },
     "userOptions": {
-      "show": true,
-      "position": "right",
-      "buttons": {
-        "tooltip": false,
-        "pdf": true,
-        "csv": false,
-        "img": true,
-        "table": false,
-        "labels": false,
-        "fullscreen": true,
-        "sort": false,
-        "stack": false,
-        "animation": false
-      },
-      "buttonTitles": {
-        "open": "Open options",
-        "close": "Close options",
-        "pdf": "Download PDF",
-        "img": "Download PNG",
-        "fullscreen": "Toggle fullscreen"
-      }
+      "show": false,
     },
     "translations": {
       "base": "Base"

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 502 - 695
src/views/system/monitor/server/index.vue


Nem az összes módosított fájl került megjelenítésre, mert túl sok fájl változott