Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CornerstoneVueWADO
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘怀志
CornerstoneVueWADO
Commits
a4b261f6
Commit
a4b261f6
authored
May 10, 2023
by
v_liuhuaizhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
连接后台接口 待部署版本
parent
c5c2b771
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
6 deletions
+13
-6
api.js
src/api/api.js
+1
-1
Index.vue
src/components/Index.vue
+2
-1
index.js
src/util/index.js
+10
-4
No files found.
src/api/api.js
View file @
a4b261f6
...
...
@@ -3,5 +3,5 @@
* */
export
default
{
// 请求图片地址
getWadouri
:
'http
://114.67.241.140:8090
/common/download/resource?resource='
getWadouri
:
'http
s://qf.91isoft.com/cw
/common/download/resource?resource='
}
src/components/Index.vue
View file @
a4b261f6
...
...
@@ -104,7 +104,8 @@ export default {
},
getFile
()
{
console
.
log
(
'kkkkkkkkkk'
,
getParamFromUrl
(
'resource'
));
const
url
=
"wadouri:"
+
api
.
getWadouri
+
decodeURIComponent
(
getParamFromUrl
(
'resource'
));
const
param
=
decodeURIComponent
(
getParamFromUrl
(
'resource'
)?
getParamFromUrl
(
'resource'
)
:
'https%3A%2F%2Fqf.91isoft.com%2Fcw%2Fprofile%2Fupload%2F2023%2F05%2F09%2Fdownload_20230509085603A001.dcm'
);
const
url
=
"wadouri:"
+
api
.
getWadouri
+
param
;
this
.
loadAndViewImage
(
url
);
},
loadAndViewImage
(
imageId
)
{
...
...
src/util/index.js
View file @
a4b261f6
...
...
@@ -3,8 +3,14 @@ export const getParamFromUrl = (search, url) => {
if
(
!
url
)
{
url
=
window
.
location
.
href
;
}
let
params
=
url
.
split
(
'?'
)[
1
].
split
(
'&'
);
let
obj
=
{};
params
.
map
(
v
=>
(
obj
[
v
.
split
(
'='
)[
0
]]
=
v
.
split
(
'='
)[
1
]));
return
obj
[
search
]
||
''
;
try
{
let
params
=
url
.
split
(
'?'
)[
1
].
split
(
'&'
);
let
obj
=
{};
params
.
map
(
v
=>
(
obj
[
v
.
split
(
'='
)[
0
]]
=
v
.
split
(
'='
)[
1
]));
return
obj
[
search
]
||
''
;
}
catch
(
e
)
{
console
.
log
(
e
);
return
''
}
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment