| | |
| | | // menuWidth: 300, |
| | | dialogClickModal: false, |
| | | highlightCurrentRow: true, //行选中时高亮 |
| | | rowKey: "logName", //行数据的 Key,用来优化 Table 的渲染 |
| | | rowKey: "randomOid", //行数据的 Key,用来优化 Table 的渲染 |
| | | column: [ |
| | | { |
| | | label: "服务名称", |
| | |
| | | }; |
| | | } |
| | | }, |
| | | 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; |