Commit 943db6c6 authored by wuyongsheng's avatar wuyongsheng

Merge branch 'feat-20221012-environment' into 'master'

feat: 参数兼容处理

See merge request !218
parents 6a03d2bf ca93c8ce
...@@ -81,7 +81,7 @@ type IDownloadDatasetItemsParams = { ...@@ -81,7 +81,7 @@ type IDownloadDatasetItemsParams = {
path: string; // 数据集路径 path: string; // 数据集路径
name: string; // 数据集名称 name: string; // 数据集名称
id: string; // 每个分子的index,逗号分隔 id: string; // 每个分子的index,逗号分隔
downloadType: string; // 下载格式”,可选 SMILES(.smi)、SD(.sdf)、PDB(.pdb)、MOL(.mol)、MOL2(.mol2) downloadType: string; // 下载格式”,可选 SMILES(.smi)、SD(.sdf)、PDB(.pdb)、MOL(.mol)、MOL2(.mol2)、PDBQT(.pdbqt)、'PDBQT(DOCKING POSES)'(.pdbqt)
} }
class CloudEController { class CloudEController {
......
...@@ -24,6 +24,8 @@ const flieTypeMap = { ...@@ -24,6 +24,8 @@ const flieTypeMap = {
PDB: ".pdb", PDB: ".pdb",
MOL: ".mol", MOL: ".mol",
MOL2: ".mol2", MOL2: ".mol2",
PDBQT: ".pdbqt",
'PDBQT(DOCKING POSES)': '.pdbqt'
}; };
const Download = (props: IDownloadProps) => { const Download = (props: IDownloadProps) => {
......
...@@ -117,7 +117,7 @@ const SeeDataset = observer((props: ISeeDatasetProps) => { ...@@ -117,7 +117,7 @@ const SeeDataset = observer((props: ISeeDatasetProps) => {
index: sortState.field ? sortState.field : "", index: sortState.field ? sortState.field : "",
sort: sortState.order ? sortState.order : "", sort: sortState.order ? sortState.order : "",
}, },
requestQuerylist requestQuerylist || []
) )
?.then((res) => { ?.then((res) => {
setLoading(false); setLoading(false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment