Skip to content

Commit

Permalink
[bug-modify]:viewer disabled loading dicom issue
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengdechang2 committed Nov 23, 2022
1 parent d305fc5 commit 264be97
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 22 deletions.
12 changes: 1 addition & 11 deletions platform/core/src/studies/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,6 @@ import searchStudies from './searchStudies';
import sortStudy from './sortStudy';


// const retrieveStudiesMetadata = (server, ...res) => {
// let serve = JSON.parse(localStorage.getItem('serve'))
// console.log('serve12333r: ', serve);
// if (serve !== undefined || serve !== {}) {
// server = { ...server, ...serve }
// }
// return retrieveStudiesMetadatas(server, ...res)
// }

export const changeServe = (object) => {

let list = Object.keys(object)
Expand All @@ -41,7 +32,7 @@ export const changeServe = (object) => {
params = [server, ...params]
}
}
midFn(...params)
return midFn(...params)
}
})
pre[item] = object[item]
Expand All @@ -54,7 +45,6 @@ let serveApi = {
retrieveStudyMetadata,
deleteStudyMetadataPromise,
retrieveStudiesMetadata,

}
let serveApiExport = changeServe(serveApi)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

/**
* Class to define inheritance of load retrieve strategy.
* The process can be async load (lazy) or sync load
Expand All @@ -22,8 +23,11 @@ export default class RetrieveMetadataLoader {
async execLoad() {
await this.configLoad();
const preLoadData = await this.preLoad();
console.log('preLoadData: ', preLoadData);
const loadData = await this.load(preLoadData);
console.log('loadData: ', loadData);
const postLoadData = await this.posLoad(loadData);
console.log('postLoadData: ', postLoadData);

return postLoadData;
}
Expand Down Expand Up @@ -53,8 +57,8 @@ export default class RetrieveMetadataLoader {
}

// Methods to be overwrite
async configLoad() {}
async preLoad() {}
async load(preLoadData) {}
async posLoad(loadData) {}
async configLoad() { }
async preLoad() { }
async load(preLoadData) { }
async posLoad(loadData) { }
}
5 changes: 0 additions & 5 deletions platform/viewer/public/config/default.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
/*
* @Description:
* @Author: eleven
* @Date: 2022-11-21 21:23:57
*/
window.config = {
// default: '/'
routerBasename: '/',
Expand Down
4 changes: 2 additions & 2 deletions platform/viewer/public/config/docker_nginx-orthanc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* @Description:
* @Author: zhenglong
* @Description:
* @Author: eleven
* @Date: 2022-11-21 21:23:57
*/

Expand Down

0 comments on commit 264be97

Please sign in to comment.