| | |
| | | }; |
| | | } |
| | | }, |
| | | 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; |