筛查结果修改

This commit is contained in:
shidongli 2023-11-09 09:26:50 +08:00
parent 235678453c
commit 50f8c9d8e4
3 changed files with 13 additions and 8 deletions

View File

@ -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')

View File

@ -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)

View File

@ -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();
},