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