Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
epidemic
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
史锦峰
epidemic
Commits
3ed39da6
Commit
3ed39da6
authored
Feb 15, 2020
by
sjf1256754123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改接口地址
parent
5b3c8489
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
10 deletions
+23
-10
fillIn.vue
pages/fillIn/fillIn.vue
+21
-4
index.vue
pages/index/index.vue
+0
-4
request.js
utils/request.js
+2
-2
No files found.
pages/fillIn/fillIn.vue
View file @
3ed39da6
...
@@ -385,14 +385,31 @@
...
@@ -385,14 +385,31 @@
},
},
onLoad
(
option
)
{
onLoad
(
option
)
{
this
.
id
=
option
.
id
||
''
// this.id = option.id || ''
if
(
option
.
id
){
// if(option.id){
this
.
getInfo
(
option
.
id
)
// this.getInfo(option.id)
}
// }
this
.
getOrg
()
},
},
methods
:
{
methods
:
{
getOrg
(){
const
data
=
{
params
:
{
pageNum
:
1
,
pageSize
:
1000000
}
}
this
.
$http
.
get
(
`/sict-ncov/org/page`
,
data
).
then
(
res
=>
{
const
d
=
res
.
data
if
(
d
.
code
==
1
)
{
console
.
log
(
d
)
}
}).
catch
(
err
=>
{
console
.
log
(
err
)
})
},
// 获取信息
// 获取信息
getInfo
(
id
){
getInfo
(
id
){
// this.$http.get(`/ewell-gastric-cancer-data/report/selectReportBySampleId?id=${id}`).then(res => {
// this.$http.get(`/ewell-gastric-cancer-data/report/selectReportBySampleId?id=${id}`).then(res => {
...
...
pages/index/index.vue
View file @
3ed39da6
...
@@ -61,11 +61,7 @@
...
@@ -61,11 +61,7 @@
userInfo
.
avatarUrl
=
obj
.
avatarUrl
userInfo
.
avatarUrl
=
obj
.
avatarUrl
}
}
this
.
$store
.
dispatch
(
'
user/setInfo
'
,
Object
.
assign
(
obj
,
userInfo
))
this
.
$store
.
dispatch
(
'
user/setInfo
'
,
Object
.
assign
(
obj
,
userInfo
))
this
.
$store
.
dispatch
(
'
user/setToken
'
,
d
.
result
)
this
.
$store
.
dispatch
(
'
user/setToken
'
,
d
.
result
)
this
.
getFamilyRelation
()
this
.
getEliminate
()
this
.
getNotice2
()
}
}
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
console
.
log
(
err
)
console
.
log
(
err
)
...
...
utils/request.js
View file @
3ed39da6
...
@@ -10,8 +10,8 @@
...
@@ -10,8 +10,8 @@
import
store
from
'
../store
'
import
store
from
'
../store
'
export
default
class
Request
{
export
default
class
Request
{
config
=
{
config
=
{
baseUrl
:
'
https://health.sh-sict.com/
gastric
-api
'
,
baseUrl
:
'
https://health.sh-sict.com/
ncov
-api
'
,
// baseUrl: 'http://139.9.163.126/
gastric
-api',
// baseUrl: 'http://139.9.163.126/
ncov
-api',
header
:
{
header
:
{
'
content-type
'
:
'
application/json;charset=UTF-8
'
,
'
content-type
'
:
'
application/json;charset=UTF-8
'
,
},
},
...
...
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