diff --git a/pagesB/screeningResult/screeningResult.vue b/pagesB/screeningResult/screeningResult.vue
index 5aec9af..adf7c37 100644
--- a/pagesB/screeningResult/screeningResult.vue
+++ b/pagesB/screeningResult/screeningResult.vue
@@ -9,7 +9,14 @@
筛查记录
-
+
{{screeningResultData.projectName}}
{
- // this.items.push(res.data.data.projectName)
- // this.screeningResultData = res.data.data
- // })
- // } else {
-
- // // this.patientld= uni.getStorageSync('patientld');
- // this.patientld=52;
- // this.getLastScreeningResult()
- // }
- // },
onShow() {
- this.baseurl=baseurl
+ this.baseurl = baseurl
console.log(baseurl)
},
@@ -219,7 +203,7 @@ import baseurl from '@/api/baseurl.js'
})
} else {
// this.patientld = 52;
- this.userinfo= uni.getStorageSync('userinfo');
+ this.userinfo = uni.getStorageSync('userinfo');
this.patientld = this.userinfo.id;
this.getLastScreeningResult()
}
@@ -227,9 +211,8 @@ import baseurl from '@/api/baseurl.js'
methods: {
lookpath() {
var that = this
-
- var url = that.baseurl + `/nurseApplet/screening/record/fileview/${that.screeningResultData.attachment}`
- console.log(url,'1')
+ var url = that.baseurl + `/nurseApplet/screening/record/fileview?filePath=${that.screeningResultData.attachment}`
+ console.log(url, '1')
uni.downloadFile({
url: url,
responseType: 'blob',
@@ -295,11 +278,14 @@ import baseurl from '@/api/baseurl.js'
},
// 获取最新的筛查结果
getLastScreeningResult() {
- console.log(this.registerId,'999')
- lastScreeningResult(this.patientld,this.projectId).then(res => {
+ console.log(this.registerId, '999')
+ lastScreeningResult(this.patientld, this.projectId).then(res => {
// console.log(res);
- this.items.push(res.data.projectName)
+ if (res.data.projectName) {
+ this.items.push(res.data.projectName)
+
+ }
this.screeningResultData = res.data
this.isResult(this.Inv)
})
@@ -368,4 +354,4 @@ import baseurl from '@/api/baseurl.js'
color: #393939;
border-bottom: 3px solid #4DC2A8;
}
-
+
\ No newline at end of file