筛查结果修改

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

View File

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

View File

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