@@ -1,3 +1,11 @@ | |||||
## 0.4.1 (2021-07-14) | |||||
### Bug Fixs | |||||
- 下载服务迁移到天枢官网 | |||||
- 修复了异常全局处理报错的问题 | |||||
- [模型开发] 修复 Notebook 详情抽屉样式污染问题 | |||||
## 0.4.0 (2021-07-06) | ## 0.4.0 (2021-07-06) | ||||
### Features | ### Features | ||||
@@ -1,6 +1,6 @@ | |||||
{ | { | ||||
"name": "dubhe-web", | "name": "dubhe-web", | ||||
"version": "0.4.0", | |||||
"version": "0.4.1", | |||||
"description": "之江天枢人工智能开源平台", | "description": "之江天枢人工智能开源平台", | ||||
"author": "zhejianglab", | "author": "zhejianglab", | ||||
"keywords": [ | "keywords": [ | ||||
@@ -25,6 +25,7 @@ let isMsgOn = false; | |||||
// 全局未捕获异常处理(包括普通异常和 await 未被捕获的异常) | // 全局未捕获异常处理(包括普通异常和 await 未被捕获的异常) | ||||
Vue.config.errorHandler = (err) => { | Vue.config.errorHandler = (err) => { | ||||
if (!err) return; | |||||
console.error(err); | console.error(err); | ||||
// 未授权只提示一次 | // 未授权只提示一次 | ||||
if (err.code === UNAUTHORIZED) { | if (err.code === UNAUTHORIZED) { | ||||
@@ -20,6 +20,8 @@ import ZIP from './zip'; | |||||
const pMap = require('p-map'); | const pMap = require('p-map'); | ||||
streamSaver.mitm = 'https://static.tianshu.org.cn/mitm.html'; | |||||
// 默认名字解析 | // 默认名字解析 | ||||
const defaultName = (file) => file.name; | const defaultName = (file) => file.name; | ||||
@@ -71,6 +71,7 @@ import { | |||||
annotationBy, | annotationBy, | ||||
dataTypeCodeMap, | dataTypeCodeMap, | ||||
showOfRecord, | showOfRecord, | ||||
isCustomDataset, | |||||
} from '@/views/dataset/util'; | } from '@/views/dataset/util'; | ||||
import { toggleVersion, deleteVersion, shiftOfRecord } from '@/api/preparation/dataset'; | import { toggleVersion, deleteVersion, shiftOfRecord } from '@/api/preparation/dataset'; | ||||
import { TableTooltip } from '@/hooks/tooltip'; | import { TableTooltip } from '@/hooks/tooltip'; | ||||
@@ -160,12 +161,15 @@ export default { | |||||
const prefixUrl = `dataset/${row.datasetId}/versionFile/${row.versionName}`; | const prefixUrl = `dataset/${row.datasetId}/versionFile/${row.versionName}`; | ||||
return downloadZipFromObjectPath(prefixUrl, `${row.datasetId}_${row.versionName}.zip`, { | return downloadZipFromObjectPath(prefixUrl, `${row.datasetId}_${row.versionName}.zip`, { | ||||
fileName: (file) => file.name.replace(`${prefixUrl}/`, ''), | fileName: (file) => file.name.replace(`${prefixUrl}/`, ''), | ||||
filter: (result) => | |||||
result.filter((item) => { | |||||
filter: (result) => { | |||||
// 自定义数据集没有固定目录结构,直接下载即可 | |||||
if (isCustomDataset(row)) return result; | |||||
return result.filter((item) => { | |||||
return ['annotation', 'origin'].some((str) => | return ['annotation', 'origin'].some((str) => | ||||
item.name.startsWith(`${prefixUrl}/${str}`) | item.name.startsWith(`${prefixUrl}/${str}`) | ||||
); | ); | ||||
}), | |||||
}); | |||||
}, | |||||
}); | }); | ||||
}; | }; | ||||
@@ -17,7 +17,7 @@ | |||||
<template> | <template> | ||||
<div style="margin-top: 40px; overflow: auto;"> | <div style="margin-top: 40px; overflow: auto;"> | ||||
<!--基本信息--> | <!--基本信息--> | ||||
<div class="title">基本信息</div> | |||||
<div class="title" tabindex="0">基本信息</div> | |||||
<el-row class="row"> | <el-row class="row"> | ||||
<el-col :span="5"> | <el-col :span="5"> | ||||
<div class="label">名称</div> | <div class="label">名称</div> | ||||
@@ -168,7 +168,7 @@ export default { | |||||
}; | }; | ||||
</script> | </script> | ||||
<style rel="stylesheet/scss" lang="scss"> | |||||
<style rel="stylesheet/scss" lang="scss" scoped> | |||||
@import '@/assets/styles/variables.scss'; | @import '@/assets/styles/variables.scss'; | ||||
.title { | .title { | ||||