Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
agcs2.0-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
liang
agcs2.0-web
Commits
a35bcbf9
Commit
a35bcbf9
authored
May 12, 2023
by
miaojiale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改文件地址配置
parent
4dfbfbc9
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
21 additions
and
13 deletions
+21
-13
.env.development
.env.development
+1
-0
.env.production
.env.production
+1
-0
index.vue
src/components/Upload/index.vue
+6
-3
index.vue
src/components/UploadForOperation/index.vue
+5
-6
index.vue
src/views/Home/HealthPopularization/index.vue
+3
-2
index.vue
src/views/Home/ScientificResearch/index.vue
+2
-1
index.vue
src/views/Home/index.vue
+3
-1
No files found.
.env.development
View file @
a35bcbf9
NODE_ENV = 'development'
VUE_APP_BASE_API = 'mockServer'
VUE_APP_BASE_API = 'http://192.168.31.140:11999/'
VUE_APP_UPLOAD_API = 'https://ds.cixincloud.com/geca-api/disease-data/file/info/'
VUE_CLI_BABEL_TRANSPILE_MODULES = true
.env.production
View file @
a35bcbf9
NODE_ENV = 'production'
VUE_APP_BASE_API = '/geca-api/'
VUE_APP_UPLOAD_API = '/geca-api/disease-data/file/info/'
src/components/Upload/index.vue
View file @
a35bcbf9
...
...
@@ -99,6 +99,7 @@ export default {
?
"
/api
"
:
process
.
env
.
VUE_APP_BASE_API
,
fileList
:
[],
uploadPrefix
:
process
.
env
.
VUE_APP_UPLOAD_API
,
}
},
computed
:
{
...
...
@@ -119,7 +120,7 @@ export default {
return
this
.
value
.
map
((
_
)
=>
{
return
(
_
.
url
||
`/geca-api/disease-data/file/info/
${
_
.
bucket_name
}
/
${
_
.
prefix
}
-
${
_
.
uuid_name
}
`
this
.
uploadPrefix
+
`
${
_
.
bucket_name
}
/
${
_
.
prefix
}
-
${
_
.
uuid_name
}
`
)
})
},
...
...
@@ -132,7 +133,8 @@ export default {
this
.
fileList
=
newValue
.
map
((
_
)
=>
{
return
{
name
:
_
.
file_name
,
url
:
`/geca-api/disease-data/file/info/
${
_
.
bucket_name
}
/
${
_
.
prefix
}
-
${
_
.
uuid_name
}
`
,
url
:
this
.
uploadPrefix
+
`
${
_
.
bucket_name
}
/
${
_
.
prefix
}
-
${
_
.
uuid_name
}
`
,
}
})
},
...
...
@@ -204,7 +206,8 @@ export default {
let
responseUrl
if
(
file
.
response
)
{
const
_
=
file
.
response
.
data
responseUrl
=
`/geca-api/disease-data/file/info/
${
_
.
bucket_name
}
/
${
_
.
prefix
}
-
${
_
.
uuid_name
}
`
responseUrl
=
this
.
uploadPrefix
+
`
${
_
.
bucket_name
}
/
${
_
.
prefix
}
-
${
_
.
uuid_name
}
`
}
try
{
if
(
name
.
match
(
/
\.(
png|jpg|jpeg
)
/
))
{
...
...
src/components/UploadForOperation/index.vue
View file @
a35bcbf9
...
...
@@ -124,6 +124,7 @@ export default {
type
:
String
,
default
:
"
primary
"
,
},
value
:
{
type
:
Array
,
default
:
()
=>
[],
...
...
@@ -133,6 +134,7 @@ export default {
return
{
imgUrl
:
""
,
title
:
""
,
uploadPrefix
:
process
.
env
.
VUE_APP_UPLOAD_API
,
httpPrefix
:
process
.
env
.
NODE_ENV
===
"
development
"
?
"
/api
"
...
...
@@ -154,10 +156,7 @@ export default {
console
.
log
(
this
.
value
)
if
(
!
this
.
value
.
length
||
this
.
accept
!=
"
image/*
"
)
return
[]
return
this
.
value
.
map
((
_
)
=>
{
return
(
_
.
url
||
`https://ds.cixincloud.com/geca-api/disease-data/file/info/
${
_
.
bucketName
}
/
${
_
.
uuidName
}
`
)
return
_
.
url
||
this
.
uploadPrefix
+
`
${
_
.
bucketName
}
/
${
_
.
uuidName
}
`
})
},
},
...
...
@@ -168,7 +167,7 @@ export default {
this
.
fileList
=
newValue
.
map
((
_
)
=>
{
return
{
name
:
_
.
fileName
,
url
:
`https://ds.cixincloud.com/geca-api/disease-data/file/info/
${
_
.
bucketName
}
/
${
_
.
uuidName
}
`
,
url
:
this
.
uploadPrefix
+
`
${
_
.
bucketName
}
/
${
_
.
uuidName
}
`
,
}
})
},
...
...
@@ -235,7 +234,7 @@ export default {
let
responseUrl
if
(
file
.
response
)
{
const
_
=
file
.
response
.
data
responseUrl
=
`https://ds.cixincloud.com/geca-api/disease-data/file/info/
${
_
.
bucketName
}
/
${
_
.
uuidName
}
`
responseUrl
=
this
.
uploadPrefix
+
`
${
_
.
bucketName
}
/
${
_
.
uuidName
}
`
}
try
{
if
(
name
.
match
(
/
\.(
png|jpg|jpeg
)
/
))
{
...
...
src/views/Home/HealthPopularization/index.vue
View file @
a35bcbf9
...
...
@@ -19,7 +19,7 @@
<div
class=
"leftImg"
>
<img
:src=
"
'https://ds.cixincloud.com/geca-api/disease-data/file/info/'
+
uploadPrefix
+
item.imgPath[0].bucketName +
'/' +
item.imgPath[0].uuidName
...
...
@@ -99,6 +99,7 @@ export default {
showDetail
:
false
,
// 分页数据
total
:
0
,
uploadPrefix
:
process
.
env
.
VUE_APP_UPLOAD_API
,
tableData
:
[],
}
},
...
...
@@ -150,7 +151,7 @@ export default {
viewDetail
(
i
)
{
this
.
showDetail
=
true
this
.
pdfSrc
=
"
https://ds.cixincloud.com/geca-api/disease-data/file/info/
"
+
this
.
uploadPrefix
+
this
.
tableData
[
i
].
filePath
[
0
].
bucketName
+
"
/
"
+
this
.
tableData
[
i
].
filePath
[
0
].
uuidName
...
...
src/views/Home/ScientificResearch/index.vue
View file @
a35bcbf9
...
...
@@ -82,6 +82,7 @@ export default {
tableData
:
[],
curPdf
:
{
articleTitle
:
"
测试pdf
"
},
pdfSrc
:
""
,
uploadPrefix
:
process
.
env
.
VUE_APP_UPLOAD_API
,
}
},
mounted
()
{
...
...
@@ -122,7 +123,7 @@ export default {
this
.
$refs
.
pdfDialog
.
showPdf
=
true
this
.
curPdf
=
item
this
.
pdfSrc
=
"
https://ds.cixincloud.com/geca-api/disease-data/file/info/
"
+
this
.
uploadPrefix
+
item
.
filePath
[
0
].
bucketName
+
"
/
"
+
item
.
filePath
[
0
].
uuidName
...
...
src/views/Home/index.vue
View file @
a35bcbf9
...
...
@@ -322,11 +322,13 @@ export default {
],
researchList
:
[
"
筛查技术方案
"
,
"
筛查指南
"
,
"
学术成果
"
,
"
项目进展与成果
"
],
showFixed
:
false
,
uploadPrefix
:
process
.
env
.
VUE_APP_UPLOAD_API
,
}
},
created
()
{
this
.
getArticleList
(
"
1
"
)
this
.
getArticleList
(
"
6
"
)
console
.
log
(
this
.
uploadPrefix
)
},
mounted
()
{
this
.
getRankTotal
()
...
...
@@ -373,7 +375,7 @@ export default {
this
.
$refs
.
pdfDialog
.
showPdf
=
true
this
.
curPdf
=
item
this
.
pdfSrc
=
"
https://ds.cixincloud.com/geca-api/disease-data/file/info/
"
+
this
.
uploadPrefix
+
item
.
filePath
[
0
].
bucketName
+
"
/
"
+
item
.
filePath
[
0
].
uuidName
...
...
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