From 92b92d9801f45df8e5b56f062e6d459fee4aeac5 Mon Sep 17 00:00:00 2001
From: 龚焕茏 <2842157468@qq.com>
Date: 星期三, 21 八月 2024 15:01:09 +0800
Subject: [PATCH] feat:数据中心数字增加中文字段

---
 src/views/system/data-manage/data-detail/list.js   |   91 +++++++++++++++++++++++++++++++--------------
 src/views/system/data-manage/data-detail/index.vue |    7 ++-
 src/views/home/data-check/index.vue                |   14 ++-----
 3 files changed, 71 insertions(+), 41 deletions(-)

diff --git a/src/views/home/data-check/index.vue b/src/views/home/data-check/index.vue
index 205d4d7..ec04a8f 100644
--- a/src/views/home/data-check/index.vue
+++ b/src/views/home/data-check/index.vue
@@ -16,15 +16,9 @@
           </div>
         </div>
         <el-table :data="tableData" style="width: 100%" height="350">
-          <el-table-column label="鎺掑悕" align="center">
-            <template slot-scope="scope">
-              <span>{{ scope.row.index }}</span>
-            </template>
-          </el-table-column>
-          <el-table-column prop="deptName" label="鍖哄煙" align="center" show-overflow-tooltip>
-          </el-table-column>
-          <el-table-column prop="score" label="鍒嗘暟" align="center">
-          </el-table-column>
+          <el-table-column type="index" label="鎺掑悕" align="center" />
+          <el-table-column prop="deptName" label="鍖哄煙" align="center" show-overflow-tooltip />
+          <el-table-column prop="score" label="鍒嗘暟" align="center" />
         </el-table>
       </div>
     </el-card>
@@ -43,7 +37,7 @@
     }
   },
   mounted() {
-    calculate(this.category); 
+    this.calculate(this.category);
   },
   methods: {
     calculate(category) {
diff --git a/src/views/system/data-manage/data-detail/index.vue b/src/views/system/data-manage/data-detail/index.vue
index fd1f243..e520165 100644
--- a/src/views/system/data-manage/data-detail/index.vue
+++ b/src/views/system/data-manage/data-detail/index.vue
@@ -178,11 +178,12 @@
       this.tableHead = data.columns;
       this.cardList = data.card;
     }
-    this.getList(this.$route.query.url);
+    this.getList();
   },
   methods: {
     /** 鏌ヨ鍗″彛杩囪溅鏁版嵁涓�鑷存�у垪琛� */
-    getList(url) {
+    getList() {
+      let url = this.$route.query.url;
       this.loading = true;
       dataCenter(url, this.queryParams).then(response => {
         this.platformList = response.data;
@@ -214,7 +215,7 @@
     /** 鎼滅储鎸夐挳鎿嶄綔 */
     handleQuery() {
       this.queryParams.pageNum = 1;
-      this.getList(this.$route.query.url);
+      this.getList();
     },
     /** 閲嶇疆鎸夐挳鎿嶄綔 */
     resetQuery() {
diff --git a/src/views/system/data-manage/data-detail/list.js b/src/views/system/data-manage/data-detail/list.js
index 987c208..bcf2ac9 100644
--- a/src/views/system/data-manage/data-detail/list.js
+++ b/src/views/system/data-manage/data-detail/list.js
@@ -704,7 +704,7 @@
         {
           "label": "icmp鐘舵��",
           "align": "center",
-          "prop": "icmpStatus"
+          "prop": "icmpStatusText"
         },
         {
           "label": "鏈�杩慽cmp鏃堕棿",
@@ -761,7 +761,7 @@
         {
           "label": "鍦ㄧ嚎鐘舵��",
           "align": "center",
-          "prop": "status"
+          "prop": "statusText"
         },
         {
           "label": "鐪佸巺鏍囩",
@@ -853,7 +853,7 @@
         {
           label: "褰曞儚瀹屾暣鐘舵��",
           align: "center",
-          prop: "recordStatus"
+          prop: "recordStatusText"
         },
         {
           label: "缁熻鏃堕棿",
@@ -1407,7 +1407,7 @@
         {
           label: "褰曞儚瀹屾暣鐘舵��",
           align: "center",
-          prop: "recordStatus"
+          prop: "recordStatusText"
         },
         {
           label: "缁熻鏃堕棿",
@@ -2314,12 +2314,12 @@
         {
           label: '缁忕含搴︾洃娴嬬粨鏋� ',
           align: 'center',
-          prop: 'lalType',
+          prop: 'lalTypeText',
         },
         {
           label: '鍥芥爣缂栫爜鐩戞祴缁撴灉 ',
           align: 'center',
-          prop: 'gbCodeType',
+          prop: 'gbCodeTypeText',
         },
       ],
       card: [
@@ -2572,7 +2572,7 @@
         {
           "label": "鎶撴媿鏁版嵁閲忕洃娴嬬粨鏋�",
           "align": "center",
-          "prop": "snapResult"
+          "prop": "snapResultText"
         },
         {
           "label": "鏃堕挓鍑嗙‘鐜�",
@@ -2587,7 +2587,7 @@
         {
           "label": "褰撴棩鎶撴媿鏁版嵁鏃堕挓鍑嗙‘鎬у垽瀹氱粨鏋�",
           "align": "center",
-          "prop": "snapClock.todayClockResult"
+          "prop": "snapClock.todayClockResultText"
         },
         {
           "label": "鍏ㄩ儴鎶撴媿鏁版嵁鏃堕挓鍑嗙‘鏁版嵁閲�",
@@ -2597,7 +2597,7 @@
         {
           "label": "鍏ㄩ儴鎶撴媿鏁版嵁鏃堕挓鍑嗙‘鎬у垽瀹氱粨鏋�",
           "align": "center",
-          "prop": "snapClock.allClockResult"
+          "prop": "snapClock.allClockResultText"
         },
         {
           "label": "鍙婃椂鐜�",
@@ -2627,7 +2627,7 @@
         {
           "label": "褰撴棩鎶撴媿鏁版嵁鍙婃椂鎬у垽瀹氱粨鏋�",
           "align": "center",
-          "prop": "snapTimely.todayTimelyResult"
+          "prop": "snapTimely.todayTimelyResultText"
         },
         {
           "label": "鍏ㄩ儴鏁版嵁寤惰繜閲�",
@@ -2652,7 +2652,7 @@
         {
           "label": "鍏ㄩ儴鏁版嵁鍙婃椂鎬у垽瀹氱粨鏋�",
           "align": "center",
-          "prop": "snapTimely.allTimelyResult"
+          "prop": "snapTimely.allTimelyResultText"
         },
         {
           "label": "涓嶅敮涓�鏁版嵁閲�",
@@ -2677,7 +2677,7 @@
         {
           "label": "杞︾墝璇嗗埆寮傚父",
           "align": "center",
-          "prop": "snapPlate.recgResult"
+          "prop": "snapPlate.recgResultText"
         },
         {
           "label": "杞︾墝鍙蜂笉瀹屾暣閲�",
@@ -3056,7 +3056,7 @@
         {
           label: '鎶撴媿鏁版嵁閲忕洃娴嬬粨鏋�',
           align: 'center',
-          prop: 'resultType',
+          prop: 'resultTypeText',
         },
       ],
       card: [
@@ -3122,7 +3122,7 @@
         {
           label: '鎶撴媿鏁版嵁閲忕洃娴嬬粨鏋�',
           align: 'center',
-          prop: 'resultType',
+          prop: 'resultTypeText',
         },
       ],
       card: [
@@ -3339,12 +3339,12 @@
         {
           label: '缁忕含搴︾洃娴嬬粨鏋� ',
           align: 'center',
-          prop: 'lalType',
+          prop: 'lalTypeText',
         },
         {
           label: '鍥芥爣缂栫爜鐩戞祴缁撴灉 ',
           align: 'center',
-          prop: 'gbCodeType',
+          prop: 'gbCodeTypeText',
         },
       ],
       card: [
@@ -3385,7 +3385,12 @@
         {
           label: '缁忕含搴︾洃娴嬬粨鏋� ',
           align: 'center',
-          prop: 'lalType',
+          prop: 'lalTypeText',
+        },
+        {
+          label: '鍥芥爣缂栫爜鐩戞祴缁撴灉 ',
+          align: 'center',
+          prop: 'gbCodeTypeText',
         },
         {
           label: '鏅�氳兘鍔涢泦 ',
@@ -3393,7 +3398,7 @@
           prop: 'capabilitySet',
         },
         {
-          label: '鏅�氳兘鍔涢泦 ',
+          label: '鏅鸿兘鑳藉姏闆� ',
           align: 'center',
           prop: 'intelligentSet',
         },
@@ -3466,7 +3471,7 @@
         {
           "label": "鎶撴媿鏁版嵁閲忕洃娴嬬粨鏋�",
           "align": "center",
-          "prop": "snapResult"
+          "prop": "snapResultText"
         },
         {
           "label": "鏃堕挓鍑嗙‘鐜�",
@@ -3481,7 +3486,7 @@
         {
           "label": "褰撴棩鎶撴媿鏁版嵁鏃堕挓鍑嗙‘鎬у垽瀹氱粨鏋�",
           "align": "center",
-          "prop": "snapClock.todayClockResult"
+          "prop": "snapClock.todayClockResultText"
         },
         {
           "label": "鍏ㄩ儴鎶撴媿鏁版嵁鏃堕挓鍑嗙‘鏁版嵁閲�",
@@ -3491,7 +3496,7 @@
         {
           "label": "鍏ㄩ儴鎶撴媿鏁版嵁鏃堕挓鍑嗙‘鎬у垽瀹氱粨鏋�",
           "align": "center",
-          "prop": "snapClock.allClockResult"
+          "prop": "snapClock.allClockResultText"
         },
         {
           "label": "鍙婃椂鐜�",
@@ -3521,7 +3526,7 @@
         {
           "label": "褰撴棩鎶撴媿鏁版嵁鍙婃椂鎬у垽瀹氱粨鏋�",
           "align": "center",
-          "prop": "snapTimely.todayTimelyResult"
+          "prop": "snapTimely.todayTimelyResultText"
         },
         {
           "label": "鍏ㄩ儴鏁版嵁寤惰繜閲�",
@@ -3546,7 +3551,37 @@
         {
           "label": "鍏ㄩ儴鏁版嵁鍙婃椂鎬у垽瀹氱粨鏋�",
           "align": "center",
-          "prop": "snapTimely.allTimelyResult"
+          "prop": "snapTimely.allTimelyResultText"
+        },
+        {
+          "label": "寤烘ā澶辫触鐜�",
+          "align": "center",
+          "prop": "snapValidity.failPercent"
+        },
+        {
+          "label": "寤烘ā澶辫触鏁版嵁閲�",
+          "align": "center",
+          "prop": "snapValidity.failCount"
+        },
+        {
+          "label": "鐧藉ぉ寤烘ā澶辫触鏁版嵁閲�",
+          "align": "center",
+          "prop": "snapValidity.dayFailCount"
+        },
+        {
+          "label": "浣庤瘎鍒嗘暟鎹噺",
+          "align": "center",
+          "prop": "snapValidity.lowScoreCount"
+        },
+        {
+          "label": "骞冲潎浜鸿劯浣庡钩鍒嗙巼",
+          "align": "center",
+          "prop": "snapValidity.lowScorePercent"
+        },
+        {
+          "label": "鐧藉ぉ浜鸿劯浣庡钩鍒嗘暟鎹噺",
+          "align": "center",
+          "prop": "snapValidity.dayLowCount"
         },
         {
           "label": "涓嶅敮涓�鏁版嵁閲�",
@@ -3627,7 +3662,7 @@
         {
           "label": "鎶撴媿鏁版嵁閲忕洃娴嬬粨鏋�",
           "align": "center",
-          "prop": "snapResult"
+          "prop": "snapResultText"
         },
         {
           "label": "鏃堕挓鍑嗙‘鐜�",
@@ -3642,7 +3677,7 @@
         {
           "label": "褰撴棩鎶撴媿鏁版嵁鏃堕挓鍑嗙‘鎬у垽瀹氱粨鏋�",
           "align": "center",
-          "prop": "snapClock.todayClockResult"
+          "prop": "snapClock.todayClockResultText"
         },
         {
           "label": "鍏ㄩ儴鎶撴媿鏁版嵁鏃堕挓鍑嗙‘鏁版嵁閲�",
@@ -3652,7 +3687,7 @@
         {
           "label": "鍏ㄩ儴鎶撴媿鏁版嵁鏃堕挓鍑嗙‘鎬у垽瀹氱粨鏋�",
           "align": "center",
-          "prop": "snapClock.allClockResult"
+          "prop": "snapClock.allClockResultText"
         },
         {
           "label": "鍙婃椂鐜�",
@@ -3682,7 +3717,7 @@
         {
           "label": "褰撴棩鎶撴媿鏁版嵁鍙婃椂鎬у垽瀹氱粨鏋�",
           "align": "center",
-          "prop": "snapTimely.todayTimelyResult"
+          "prop": "snapTimely.todayTimelyResultText"
         },
         {
           "label": "鍏ㄩ儴鏁版嵁寤惰繜閲�",
@@ -3707,7 +3742,7 @@
         {
           "label": "鍏ㄩ儴鏁版嵁鍙婃椂鎬у垽瀹氱粨鏋�",
           "align": "center",
-          "prop": "snapTimely.allTimelyResult"
+          "prop": "snapTimely.allTimelyResultText"
         },
         {
           "label": "涓嶅敮涓�鏁版嵁閲�",

--
Gitblit v1.8.0