From 9b4433fddf5b401edb0aace8a404ac733b122702 Mon Sep 17 00:00:00 2001
From: 田源 <tianyuan@vci-tech.com>
Date: 星期四, 03 四月 2025 14:35:02 +0800
Subject: [PATCH] 添加非密字段显示

---
 Source/UBCS-WEB/src/views/monitor/log/localLog.vue |   32 +++++++++++++-------------------
 1 files changed, 13 insertions(+), 19 deletions(-)

diff --git a/Source/UBCS-WEB/src/views/monitor/log/localLog.vue b/Source/UBCS-WEB/src/views/monitor/log/localLog.vue
index ee2fff4..54b02e2 100644
--- a/Source/UBCS-WEB/src/views/monitor/log/localLog.vue
+++ b/Source/UBCS-WEB/src/views/monitor/log/localLog.vue
@@ -25,7 +25,7 @@
                   type="text"
                   :loading="downloadLoading"
                   @click="downLoadLogFile(scope.row)"
-                  v-if="permissionList.downLoadBtn"
+                  v-if="permissionList.downLoadBtn && scope.row.hasChildren!=1"
               >涓嬭浇
               </el-button>
           </template>
@@ -69,7 +69,7 @@
           // menuWidth: 300,
           dialogClickModal: false,
           highlightCurrentRow: true, //琛岄�変腑鏃堕珮浜�
-          rowKey: "logName", //琛屾暟鎹殑 Key锛岀敤鏉ヤ紭鍖� Table 鐨勬覆鏌�
+          rowKey: "randomOid", //琛屾暟鎹殑 Key锛岀敤鏉ヤ紭鍖� Table 鐨勬覆鏌�
           column: [
             {
               label: "鏈嶅姟鍚嶇О",
@@ -90,21 +90,22 @@
             {
               label: "鏃ュ織鍚嶇О",
               prop: "logName",
-              width:'80',
+              width:'160',
             },
             {
               label: "鏃ュ織绫诲瀷",
-              prop: "logType"
+              prop: "logType",
+              width:'160'
             },
-            {
+            /*{
               label: "鍒涘缓鏃堕棿",
               prop: "createTime",
-              width:'180'
-            },
+              width:'160'
+            },*/
             {
               label: "鏈�鍚庝慨鏀规椂闂�",
               prop: "lastModifier",
-              width:'180'
+              width:'160'
             }
           ]
         },
@@ -117,22 +118,15 @@
       permissionList() {
         return {
           delBtn: this.vaildData(this.permission.localLog.localLog_delete, false),
-          downLoadBtn: this.vaildData(this.permission.localLog.localLog_dwonload, false)
+          downLoadBtn: this.vaildData(this.permission.localLog.localLog_download, false)
         };
       }
     },
-    methods: {  
-      // 鍒ゆ柇瀹㈡埛绔墍鍦ㄧ殑鎿嶄綔绯荤粺骞冲彴
-      isWindows() {
-        return navigator.platform.indexOf('Win') !== -1
-      },
-      // 鏍规嵁鎿嶄綔绯荤粺骞冲彴杩斿洖鐩稿簲鐨勮矾寰勫垎闅旂
-      getPathSeparator() {
-        return this.isWindows() ? '\\' : '/'
-      },
+    methods: {
+
       downLoadLogFile(row){
           this.downloadLoading = true;
-          let logPath = row.hasChildren ?  row.logPath:row.logPath+this.getPathSeparator()+row.logName;
+          let logPath = row.hasChildren ? row.logPath:row.logPath+"\\"+row.logName;
           downLoadLog(Object.assign({},row,{logFullPaths:logPath})).then(res=>{
               func.downloadFileByBlobHandler(res);
               this.downloadLoading = false;

--
Gitblit v1.9.3