影像指控添加导出质控问题功能
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
91078abd15
commit
6c71803a11
|
@ -203,6 +203,15 @@ export function qCVisitList_Export(data) {
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
// 导出影像指控问题和答案
|
||||||
|
export function GetTrialQCQuestionAnserList_Export(data) {
|
||||||
|
return requestDownload({
|
||||||
|
url: `/ExcelExport/GetTrialQCQuestionAnserList_Export`,
|
||||||
|
responseType: 'blob',
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
// 导出下载记录
|
// 导出下载记录
|
||||||
export function getTrialDownloadList_Export(data) {
|
export function getTrialDownloadList_Export(data) {
|
||||||
return requestDownload({
|
return requestDownload({
|
||||||
|
|
|
@ -82,6 +82,10 @@
|
||||||
<el-button type="primary" icon="el-icon-download" :loading="exportLoading" @click="handleExport">
|
<el-button type="primary" icon="el-icon-download" :loading="exportLoading" @click="handleExport">
|
||||||
{{ $t('common:button:export') }}
|
{{ $t('common:button:export') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
|
<!-- 导出质控问题和答案 -->
|
||||||
|
<el-button type="primary" :loading="exportLoading" @click="handleExportQuestion">
|
||||||
|
{{ $t('trials:qcCheck:button:exportQuestion') }}
|
||||||
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</template>
|
</template>
|
||||||
|
@ -622,7 +626,7 @@ import {
|
||||||
isQCCanOpt,
|
isQCCanOpt,
|
||||||
getNextQCInfo,
|
getNextQCInfo,
|
||||||
} from '@/api/trials'
|
} from '@/api/trials'
|
||||||
import { qCVisitList_Export } from '@/api/export'
|
import { qCVisitList_Export, GetTrialQCQuestionAnserList_Export } from '@/api/export'
|
||||||
import BaseContainer from '@/components/BaseContainer'
|
import BaseContainer from '@/components/BaseContainer'
|
||||||
import QualityAssurance from './components/qualityAssurance'
|
import QualityAssurance from './components/qualityAssurance'
|
||||||
import Manuals from './components/manuals'
|
import Manuals from './components/manuals'
|
||||||
|
@ -749,6 +753,19 @@ export default {
|
||||||
console.log(err)
|
console.log(err)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
handleExportQuestion() {
|
||||||
|
this.exportLoading = true
|
||||||
|
let data = {
|
||||||
|
TrialId: this.$route.query.trialId
|
||||||
|
}
|
||||||
|
GetTrialQCQuestionAnserList_Export(data)
|
||||||
|
.then(() => {
|
||||||
|
this.exportLoading = false
|
||||||
|
})
|
||||||
|
.catch((err) => {
|
||||||
|
this.exportLoading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
handleExport() {
|
handleExport() {
|
||||||
this.exportLoading = true
|
this.exportLoading = true
|
||||||
qCVisitList_Export(this.searchData)
|
qCVisitList_Export(this.searchData)
|
||||||
|
|
Loading…
Reference in New Issue