diff --git a/pages/fillIn/fillIn.vue b/pages/fillIn/fillIn.vue index 5f347d02f124f412766aebf8d5f1b06e38546cd0..09a6bfd590b1bc9aea9542919947ec36579b5c95 100644 --- a/pages/fillIn/fillIn.vue +++ b/pages/fillIn/fillIn.vue @@ -385,14 +385,31 @@ }, onLoad(option) { - this.id = option.id || '' - if(option.id){ - this.getInfo(option.id) - } + // this.id = option.id || '' + // if(option.id){ + // this.getInfo(option.id) + // } + this.getOrg() }, 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){ // this.$http.get(`/ewell-gastric-cancer-data/report/selectReportBySampleId?id=${id}`).then(res => { diff --git a/pages/index/index.vue b/pages/index/index.vue index 6d834b24f2d090504e6ef718bb6e9ec8a9f66fb0..c8f5e2af5f8b8b59f5596530a8e1a9d9d1521ab5 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -61,11 +61,7 @@ userInfo.avatarUrl = obj.avatarUrl } this.$store.dispatch('user/setInfo', Object.assign(obj, userInfo)) - this.$store.dispatch('user/setToken', d.result) - this.getFamilyRelation() - this.getEliminate() - this.getNotice2() } }).catch(err => { console.log(err) diff --git a/utils/request.js b/utils/request.js index dca64f65d5ce9a44bf8c528d1d74a99f3a6e8b0d..74207bdd3d79d6551c083429dd6522b9e7921734 100644 --- a/utils/request.js +++ b/utils/request.js @@ -10,8 +10,8 @@ import store from '../store' export default class Request { config = { - baseUrl: 'https://health.sh-sict.com/gastric-api', - // baseUrl: 'http://139.9.163.126/gastric-api', + baseUrl: 'https://health.sh-sict.com/ncov-api', + // baseUrl: 'http://139.9.163.126/ncov-api', header: { 'content-type': 'application/json;charset=UTF-8', },