阅片跟踪添加下载报告功能
continuous-integration/drone/push Build was killed Details

main
wangxiaoshuang 2026-05-27 16:43:11 +08:00
parent f4ad839080
commit b45f16e3e1
1 changed files with 61 additions and 1 deletions

View File

@ -66,6 +66,11 @@
:disabled="multipleSelection.length <= 0">
{{ $t('trials:inspection:button:downloadImage') }}
</el-button>
<!-- 下载报告 -->
<el-button type="primary" @click="getDownloadReportSubjectVisitStudyInfo(multipleSelection)"
:disabled="multipleSelection.length <= 0">
{{ $t('trials:inspection:button:downloadReport') }}
</el-button>
</el-form-item>
</el-form>
</template>
@ -75,7 +80,7 @@
<el-table v-loading="loading" v-adaptive="{ bottomOffset: 60 }" :data="list" stripe height="100"
@sort-change="handleSortByColumn" ref="redManagenentTable"
:default-sort="{ prop: 'CreateTime', order: 'descending' }" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" />
<el-table-column type="selection" width="55" :selectable="handelSelectable" />
<!-- <el-table-column type="index" width="40" /> -->
<!-- 受试者编号 -->
<el-table-column prop="SubjectCode" :label="$t('trials:uploadMonitor:table:subjectId')" show-overflow-tooltip
@ -364,6 +369,9 @@ export default {
// });
},
methods: {
handelSelectable(row) {
return row.TaskState === 0
},
handleSelectionChange(val) {
this.multipleSelection = val;
},
@ -598,6 +606,58 @@ export default {
console.log(err)
}
},
async getDownloadReportSubjectVisitStudyInfo(arr) {
if (this.downloading) return
try {
let data = {
// SubjectVisitId: row.SourceSubjectVisitId,
VisitTaskIdList: arr.map(item => item.Id),
// TrialId: this.$route.query.trialId,
}
// this.downloadId = this.generate()
// data.CurrentNoticeId = this.downloadId
// this.onUploadProgress(this.downloadId)
// this.downloading = true
let params = null
data.VisitTaskIdList.forEach(item => {
if (!params) {
params = `VisitTaskIdList=${item}`
} else {
params += `&VisitTaskIdList=${item}`
}
})
// data.ScpStudyIdList.forEach(item => {
// if (!params) {
// params = `ScpStudyIdList=${item}`
// } else {
// params += `&ScpStudyIdList=${item}`
// }
// })
// if (!params) {
// params = `CurrentNoticeId=${this.downloadId}`
// } else {
// params += `&CurrentNoticeId=${this.downloadId}`
// }
// params += `&TrialId=${this.$route.query.trialId}`
if (params) {
params += `&access_token=${getToken()}`
let url = `/api/download/ReadingReportAndImage?${params}`
// let url = `http://106.14.89.110:30021/download/DownloadBigFileBatch?fileName=Test_HIR_New_log.ldf`
let a = document.createElement('a')
a.href = url
a.click()
a = null
}
// this.downloading = false
// if (res.IsSuccess) {
// this.downloadId = res.OtherInfo
// this.downloadImage(res.Result)
// }
} catch (err) {
this.downloading = false
console.log(err)
}
},
//
async getDownloadSubjectVisitStudyInfo(arr) {
if (this.downloading) return