田源
2023-11-27 b874509c73cbdea8eab37bb232ed3fd515b9a1a2
Source/UBCS-WEB/src/views/monitor/log/localLog.vue
@@ -69,7 +69,7 @@
          // menuWidth: 300,
          dialogClickModal: false,
          highlightCurrentRow: true, //行选中时高亮
          rowKey: "logName", //行数据的 Key,用来优化 Table 的渲染
          rowKey: "randomOid", //行数据的 Key,用来优化 Table 的渲染
          column: [
            {
              label: "服务名称",
@@ -121,11 +121,18 @@
        };
      }
    },
    methods: {
    methods: {
      // 判断客户端所在的操作系统平台
      isWindows() {
        return navigator.platform.indexOf('Win') !== -1
      },
      // 根据操作系统平台返回相应的路径分隔符
      getPathSeparator() {
        return this.isWindows() ? '\\' : '/'
      },
      downLoadLogFile(row){
          this.downloadLoading = true;
          let logPath = row.hasChildren ?  row.logPath:row.logPath+"\\"+row.logName;
          let logPath = row.hasChildren ?  row.logPath:row.logPath+this.getPathSeparator()+row.logName;
          downLoadLog(Object.assign({},row,{logFullPaths:logPath})).then(res=>{
              func.downloadFileByBlobHandler(res);
              this.downloadLoading = false;