diff --git a/src/api/export.js b/src/api/export.js index 74317182..f2285747 100644 --- a/src/api/export.js +++ b/src/api/export.js @@ -187,3 +187,30 @@ export function qCVisitList_Export(data) { data }) } +// 导出下载记录 +export function getTrialDownloadList_Export(data) { + return requestDownload({ + url: `/ExcelExport/getTrialDownloadList_Export`, + responseType: 'blob', + method: 'post', + data + }) +} +// 导出接收记录 +export function getSCPImageUploadList_Export(data) { + return requestDownload({ + url: `/ExcelExport/getSCPImageUploadList_Export`, + responseType: 'blob', + method: 'post', + data + }) +} +// 导出接收检查影像记录 +export function getPatientList_Export(data) { + return requestDownload({ + url: `/ExcelExport/getPatientList_Export`, + responseType: 'blob', + method: 'post', + data + }) +} diff --git a/src/views/trials/trials-panel/trial-summary/download-monitor/index.vue b/src/views/trials/trials-panel/trial-summary/download-monitor/index.vue index 3511ce4e..0084783a 100644 --- a/src/views/trials/trials-panel/trial-summary/download-monitor/index.vue +++ b/src/views/trials/trials-panel/trial-summary/download-monitor/index.vue @@ -82,13 +82,14 @@ {{ $t('common:button:reset') }} - + @@ -263,6 +264,7 @@ import { getTrialDownloadList } from '@/api/load' import Pagination from '@/components/Pagination' import BaseContainer from '@/components/BaseContainer' +import { getTrialDownloadList_Export } from '@/api/export' const searchDataDefault = () => { return { SortField: 'DownloadStartTime', @@ -352,6 +354,14 @@ export default { this.searchData.DownloadEndTime = '' } }, + // 导出 + async handleExport() { + try { + return getTrialDownloadList_Export(this.searchData) + } catch (err) { + consol.log(err) + } + }, }, } diff --git a/src/views/trials/trials-panel/trial-summary/image-inspect/index.vue b/src/views/trials/trials-panel/trial-summary/image-inspect/index.vue index ada6da04..e3074591 100644 --- a/src/views/trials/trials-panel/trial-summary/image-inspect/index.vue +++ b/src/views/trials/trials-panel/trial-summary/image-inspect/index.vue @@ -92,7 +92,7 @@ - {{ $t("common:button:search") }} + {{ $t('common:button:search') }} - {{ $t("common:button:reset") }} + {{ $t('common:button:reset') }} + + + + {{ $t('common:button:export') }} @@ -155,7 +164,7 @@ min-width="90" show-overflow-tooltip > @@ -166,7 +175,7 @@ show-overflow-tooltip > @@ -240,11 +249,12 @@ import { getPatientList, getDicomCalledAEList, getDicomCallingAEList, -} from "@/api/trials"; -import BaseContainer from "@/components/BaseContainer"; -import Pagination from "@/components/Pagination"; -import moment from "moment"; -import viewStudy from "./components/view-study"; +} from '@/api/trials' +import BaseContainer from '@/components/BaseContainer' +import Pagination from '@/components/Pagination' +import moment from 'moment' +import viewStudy from './components/view-study' +import { getPatientList_Export } from '@/api/export' const searchDataDefault = () => { return { PatientIdStr: null, @@ -258,9 +268,9 @@ const searchDataDefault = () => { PageIndex: 1, PageSize: 20, Asc: false, - SortField: "LatestPushTime", - }; -}; + SortField: 'LatestPushTime', + } +} export default { components: { BaseContainer, Pagination, viewStudy }, data() { @@ -275,33 +285,33 @@ export default { callingAEList: [], visible: false, selectPatient: {}, - }; + } }, created() { - this.getCalledAEList(); - this.getCallingAEList(); + this.getCalledAEList() + this.getCallingAEList() }, mounted() { - this.getList(); + this.getList() }, methods: { // 打开弹框 handleOpenDialog(item) { - this.visible = true; - this.selectPatient = item; + this.visible = true + this.selectPatient = item }, // 获取接收端AE列表 async getCalledAEList() { try { let params = { TrialId: this.$route.query.trialId, - }; - let res = await getDicomCalledAEList(params); + } + let res = await getDicomCalledAEList(params) if (res.IsSuccess) { - this.calledAEList = res.Result; + this.calledAEList = res.Result } } catch (err) { - console.log(err); + console.log(err) } }, // 获取发送端端AE列表 @@ -309,60 +319,68 @@ export default { try { let params = { TrialId: this.$route.query.trialId, - }; - let res = await getDicomCallingAEList(params); + } + let res = await getDicomCallingAEList(params) if (res.IsSuccess) { - this.callingAEList = res.Result; + this.callingAEList = res.Result } } catch (err) { - console.log(err); + console.log(err) } }, getList() { - this.loading = true; - this.searchData.TrialId = this.$route.query.trialId; + this.loading = true + this.searchData.TrialId = this.$route.query.trialId getPatientList(this.searchData) .then((res) => { - this.loading = false; - this.list = res.Result.CurrentPageData; - this.total = res.Result.TotalCount; + this.loading = false + this.list = res.Result.CurrentPageData + this.total = res.Result.TotalCount }) .catch(() => { - this.loading = false; - }); + this.loading = false + }) }, handleDatetimeChange(val) { if (val) { - this.searchData.BeginPushTime = val[0]; - this.searchData.EndPushTime = val[1]; + this.searchData.BeginPushTime = val[0] + this.searchData.EndPushTime = val[1] } else { - this.searchData.BeginPushTime = ""; - this.searchData.EndPushTime = ""; + this.searchData.BeginPushTime = '' + this.searchData.EndPushTime = '' } }, handleSearch() { - this.searchData.PageIndex = 1; - this.getList(); + this.searchData.PageIndex = 1 + this.getList() }, // 重置列表查询 handleReset() { - this.datetimerange = null; - this.handleDatetimeChange(); - this.searchData = searchDataDefault(); - this.getList(); + this.datetimerange = null + this.handleDatetimeChange() + this.searchData = searchDataDefault() + this.getList() }, // 排序 handleSortByColumn(column) { - if (column.order === "ascending") { - this.searchData.Asc = true; + if (column.order === 'ascending') { + this.searchData.Asc = true } else { - this.searchData.Asc = false; + this.searchData.Asc = false + } + this.searchData.SortField = column.prop + this.searchData.PageIndex = 1 + this.getList() + }, + // 导出 + async handleExport() { + try { + return getPatientList_Export(this.searchData) + } catch (err) { + consol.log(err) } - this.searchData.SortField = column.prop; - this.searchData.PageIndex = 1; - this.getList(); }, }, -}; +} \ No newline at end of file diff --git a/src/views/trials/trials-panel/trial-summary/push-record/index.vue b/src/views/trials/trials-panel/trial-summary/push-record/index.vue index a1d69029..3e4922e4 100644 --- a/src/views/trials/trials-panel/trial-summary/push-record/index.vue +++ b/src/views/trials/trials-panel/trial-summary/push-record/index.vue @@ -75,6 +75,15 @@ > {{ $t('common:button:reset') }} + + + {{ $t('common:button:export') }} + @@ -208,6 +217,7 @@ import { import BaseContainer from '@/components/BaseContainer' import Pagination from '@/components/Pagination' import moment from 'moment' +import { getSCPImageUploadList_Export } from '@/api/export' const searchDataDefault = () => { return { CallingAE: null, @@ -315,6 +325,14 @@ export default { this.searchData.PageIndex = 1 this.getList() }, + // 导出 + async handleExport() { + try { + return getSCPImageUploadList_Export(this.searchData) + } catch (err) { + consol.log(err) + } + }, }, }