下载文件的名称按照analysis模块的格式命名

This commit is contained in:
任珮宇 2023-11-13 15:27:58 +08:00
parent bfceec07c3
commit 2b8d41a5ce
2 changed files with 696 additions and 668 deletions

File diff suppressed because it is too large Load Diff

View File

@ -28,7 +28,14 @@
</custom-table>
</a-card>
</a-spin>
<Detail v-if="isDetail" :type="fileName" :sampleId="currSampleId" :allData="detailJson" @back="handleBack"></Detail>
<Detail
v-if="isDetail"
:type="fileName"
:sampleId="currSampleId"
:allData="detailJson"
:currName="currFileName"
@back="handleBack"
></Detail>
</div>
</template>
<script>
@ -72,8 +79,6 @@ export default {
fileName: {
handler: function (val) {
if (val === 'QCPHD' || val === 'SPHDF' || val === 'SPHDP') {
console.log(56, this)
console.log(this.getBeforeDate(6))
this.$nextTick(() => {
this.queryParam.startTime = this.getBeforeDate(6)
})
@ -104,6 +109,7 @@ export default {
detailJson: {},
allChecked: false,
currSampleId: '',
currFileName: '',
}
},
methods: {
@ -154,6 +160,8 @@ export default {
handleDetail(record) {
this.spinning = true
this.currSampleId = record.sampleId
let length = record.inputFileName.split('/').length
this.currFileName = record.inputFileName.split('/')[length - 1]
getAction('webStatistics/findGeneratedReport', { sampleId: record.sampleId })
.then((res) => {
this.spinning = false