筛查结果修改
This commit is contained in:
parent
235678453c
commit
50f8c9d8e4
@ -1,8 +1,8 @@
|
||||
import request from "../../request.js"
|
||||
// 获取项目
|
||||
export function projectTypedata(projectType) {
|
||||
export function projectTypedata(patientId) {
|
||||
return request({
|
||||
url: `/nurseApplet/screening/project/list?projectType=${projectType}`,
|
||||
url: `/nurseApplet/screening/project/list?patientId=${patientId}`,
|
||||
method: 'GET',
|
||||
header: {
|
||||
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
|
||||
|
||||
@ -19,11 +19,14 @@
|
||||
|
||||
return {
|
||||
prejectlist:{},
|
||||
userinfo:{}
|
||||
};
|
||||
},
|
||||
onShow() {
|
||||
var projectType=1
|
||||
projectTypedata(projectType).then(res=>{
|
||||
|
||||
this.userinfo=uni.getStorageSync('userinfo');
|
||||
var patientId=this.userinfo.id
|
||||
projectTypedata(patientId).then(res=>{
|
||||
this.prejectlist=res.data
|
||||
console.log(res)
|
||||
|
||||
|
||||
@ -34,14 +34,16 @@
|
||||
data() {
|
||||
return {
|
||||
prejectlist:{},
|
||||
userinfo:{}
|
||||
};
|
||||
},
|
||||
onShow() {
|
||||
var projectType=1
|
||||
projectTypedata(projectType).then(res=>{
|
||||
this.userinfo=uni.getStorageSync('userinfo');
|
||||
var patientId=this.userinfo.id
|
||||
projectTypedata(patientId).then(res=>{
|
||||
this.prejectlist=res.data
|
||||
console.log(res)
|
||||
|
||||
|
||||
|
||||
})
|
||||
// this.resultstype();
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user