阅片跟踪添加下载报告功能
continuous-integration/drone/push Build was killed
Details
continuous-integration/drone/push Build was killed
Details
parent
f4ad839080
commit
b45f16e3e1
|
|
@ -66,6 +66,11 @@
|
||||||
:disabled="multipleSelection.length <= 0">
|
:disabled="multipleSelection.length <= 0">
|
||||||
{{ $t('trials:inspection:button:downloadImage') }}
|
{{ $t('trials:inspection:button:downloadImage') }}
|
||||||
</el-button>
|
</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-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -75,7 +80,7 @@
|
||||||
<el-table v-loading="loading" v-adaptive="{ bottomOffset: 60 }" :data="list" stripe height="100"
|
<el-table v-loading="loading" v-adaptive="{ bottomOffset: 60 }" :data="list" stripe height="100"
|
||||||
@sort-change="handleSortByColumn" ref="redManagenentTable"
|
@sort-change="handleSortByColumn" ref="redManagenentTable"
|
||||||
:default-sort="{ prop: 'CreateTime', order: 'descending' }" @selection-change="handleSelectionChange">
|
: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 type="index" width="40" /> -->
|
||||||
<!-- 受试者编号 -->
|
<!-- 受试者编号 -->
|
||||||
<el-table-column prop="SubjectCode" :label="$t('trials:uploadMonitor:table:subjectId')" show-overflow-tooltip
|
<el-table-column prop="SubjectCode" :label="$t('trials:uploadMonitor:table:subjectId')" show-overflow-tooltip
|
||||||
|
|
@ -364,6 +369,9 @@ export default {
|
||||||
// });
|
// });
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
handelSelectable(row) {
|
||||||
|
return row.TaskState === 0
|
||||||
|
},
|
||||||
handleSelectionChange(val) {
|
handleSelectionChange(val) {
|
||||||
this.multipleSelection = val;
|
this.multipleSelection = val;
|
||||||
},
|
},
|
||||||
|
|
@ -598,6 +606,58 @@ export default {
|
||||||
console.log(err)
|
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) {
|
async getDownloadSubjectVisitStudyInfo(arr) {
|
||||||
if (this.downloading) return
|
if (this.downloading) return
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue