Commit 3ed39da6 authored by sjf1256754123's avatar sjf1256754123

修改接口地址

parent 5b3c8489
...@@ -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 => {
......
...@@ -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)
......
...@@ -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',
}, },
......
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