下载记录、接收记录、接收影像检查列表增加导出功能
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
705585da38
commit
d114690114
|
@ -187,3 +187,30 @@ export function qCVisitList_Export(data) {
|
||||||
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
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
|
@ -82,13 +82,14 @@
|
||||||
{{ $t('common:button:reset') }}
|
{{ $t('common:button:reset') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<!--导出-->
|
<!--导出-->
|
||||||
<!-- <el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
icon="el-icon-download"
|
icon="el-icon-download"
|
||||||
|
:disabled="list.length <= 0"
|
||||||
@click="handleExport"
|
@click="handleExport"
|
||||||
>
|
>
|
||||||
{{ $t('common:button:export') }}
|
{{ $t('common:button:export') }}
|
||||||
</el-button> -->
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</template>
|
</template>
|
||||||
|
@ -263,6 +264,7 @@
|
||||||
import { getTrialDownloadList } from '@/api/load'
|
import { getTrialDownloadList } from '@/api/load'
|
||||||
import Pagination from '@/components/Pagination'
|
import Pagination from '@/components/Pagination'
|
||||||
import BaseContainer from '@/components/BaseContainer'
|
import BaseContainer from '@/components/BaseContainer'
|
||||||
|
import { getTrialDownloadList_Export } from '@/api/export'
|
||||||
const searchDataDefault = () => {
|
const searchDataDefault = () => {
|
||||||
return {
|
return {
|
||||||
SortField: 'DownloadStartTime',
|
SortField: 'DownloadStartTime',
|
||||||
|
@ -352,6 +354,14 @@ export default {
|
||||||
this.searchData.DownloadEndTime = ''
|
this.searchData.DownloadEndTime = ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
// 导出
|
||||||
|
async handleExport() {
|
||||||
|
try {
|
||||||
|
return getTrialDownloadList_Export(this.searchData)
|
||||||
|
} catch (err) {
|
||||||
|
consol.log(err)
|
||||||
|
}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -92,7 +92,7 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
|
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
|
||||||
{{ $t("common:button:search") }}
|
{{ $t('common:button:search') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<!-- 重置 -->
|
<!-- 重置 -->
|
||||||
<el-button
|
<el-button
|
||||||
|
@ -100,7 +100,16 @@
|
||||||
icon="el-icon-refresh-left"
|
icon="el-icon-refresh-left"
|
||||||
@click="handleReset"
|
@click="handleReset"
|
||||||
>
|
>
|
||||||
{{ $t("common:button:reset") }}
|
{{ $t('common:button:reset') }}
|
||||||
|
</el-button>
|
||||||
|
<!--导出-->
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
icon="el-icon-download"
|
||||||
|
:disabled="list.length <= 0"
|
||||||
|
@click="handleExport"
|
||||||
|
>
|
||||||
|
{{ $t('common:button:export') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
@ -155,7 +164,7 @@
|
||||||
min-width="90"
|
min-width="90"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
><template slot-scope="scope">
|
><template slot-scope="scope">
|
||||||
{{ scope.row.CalledAEList.join(", ") }}
|
{{ scope.row.CalledAEList.join(', ') }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!--发送端AE-->
|
<!--发送端AE-->
|
||||||
|
@ -166,7 +175,7 @@
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.CallingAEList.join(", ") }}
|
{{ scope.row.CallingAEList.join(', ') }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!--检查-->
|
<!--检查-->
|
||||||
|
@ -240,11 +249,12 @@ import {
|
||||||
getPatientList,
|
getPatientList,
|
||||||
getDicomCalledAEList,
|
getDicomCalledAEList,
|
||||||
getDicomCallingAEList,
|
getDicomCallingAEList,
|
||||||
} from "@/api/trials";
|
} from '@/api/trials'
|
||||||
import BaseContainer from "@/components/BaseContainer";
|
import BaseContainer from '@/components/BaseContainer'
|
||||||
import Pagination from "@/components/Pagination";
|
import Pagination from '@/components/Pagination'
|
||||||
import moment from "moment";
|
import moment from 'moment'
|
||||||
import viewStudy from "./components/view-study";
|
import viewStudy from './components/view-study'
|
||||||
|
import { getPatientList_Export } from '@/api/export'
|
||||||
const searchDataDefault = () => {
|
const searchDataDefault = () => {
|
||||||
return {
|
return {
|
||||||
PatientIdStr: null,
|
PatientIdStr: null,
|
||||||
|
@ -258,9 +268,9 @@ const searchDataDefault = () => {
|
||||||
PageIndex: 1,
|
PageIndex: 1,
|
||||||
PageSize: 20,
|
PageSize: 20,
|
||||||
Asc: false,
|
Asc: false,
|
||||||
SortField: "LatestPushTime",
|
SortField: 'LatestPushTime',
|
||||||
};
|
}
|
||||||
};
|
}
|
||||||
export default {
|
export default {
|
||||||
components: { BaseContainer, Pagination, viewStudy },
|
components: { BaseContainer, Pagination, viewStudy },
|
||||||
data() {
|
data() {
|
||||||
|
@ -275,33 +285,33 @@ export default {
|
||||||
callingAEList: [],
|
callingAEList: [],
|
||||||
visible: false,
|
visible: false,
|
||||||
selectPatient: {},
|
selectPatient: {},
|
||||||
};
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getCalledAEList();
|
this.getCalledAEList()
|
||||||
this.getCallingAEList();
|
this.getCallingAEList()
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getList();
|
this.getList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 打开弹框
|
// 打开弹框
|
||||||
handleOpenDialog(item) {
|
handleOpenDialog(item) {
|
||||||
this.visible = true;
|
this.visible = true
|
||||||
this.selectPatient = item;
|
this.selectPatient = item
|
||||||
},
|
},
|
||||||
// 获取接收端AE列表
|
// 获取接收端AE列表
|
||||||
async getCalledAEList() {
|
async getCalledAEList() {
|
||||||
try {
|
try {
|
||||||
let params = {
|
let params = {
|
||||||
TrialId: this.$route.query.trialId,
|
TrialId: this.$route.query.trialId,
|
||||||
};
|
}
|
||||||
let res = await getDicomCalledAEList(params);
|
let res = await getDicomCalledAEList(params)
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
this.calledAEList = res.Result;
|
this.calledAEList = res.Result
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log(err);
|
console.log(err)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 获取发送端端AE列表
|
// 获取发送端端AE列表
|
||||||
|
@ -309,60 +319,68 @@ export default {
|
||||||
try {
|
try {
|
||||||
let params = {
|
let params = {
|
||||||
TrialId: this.$route.query.trialId,
|
TrialId: this.$route.query.trialId,
|
||||||
};
|
}
|
||||||
let res = await getDicomCallingAEList(params);
|
let res = await getDicomCallingAEList(params)
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
this.callingAEList = res.Result;
|
this.callingAEList = res.Result
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log(err);
|
console.log(err)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
getList() {
|
getList() {
|
||||||
this.loading = true;
|
this.loading = true
|
||||||
this.searchData.TrialId = this.$route.query.trialId;
|
this.searchData.TrialId = this.$route.query.trialId
|
||||||
getPatientList(this.searchData)
|
getPatientList(this.searchData)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.loading = false;
|
this.loading = false
|
||||||
this.list = res.Result.CurrentPageData;
|
this.list = res.Result.CurrentPageData
|
||||||
this.total = res.Result.TotalCount;
|
this.total = res.Result.TotalCount
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
this.loading = false;
|
this.loading = false
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
handleDatetimeChange(val) {
|
handleDatetimeChange(val) {
|
||||||
if (val) {
|
if (val) {
|
||||||
this.searchData.BeginPushTime = val[0];
|
this.searchData.BeginPushTime = val[0]
|
||||||
this.searchData.EndPushTime = val[1];
|
this.searchData.EndPushTime = val[1]
|
||||||
} else {
|
} else {
|
||||||
this.searchData.BeginPushTime = "";
|
this.searchData.BeginPushTime = ''
|
||||||
this.searchData.EndPushTime = "";
|
this.searchData.EndPushTime = ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleSearch() {
|
handleSearch() {
|
||||||
this.searchData.PageIndex = 1;
|
this.searchData.PageIndex = 1
|
||||||
this.getList();
|
this.getList()
|
||||||
},
|
},
|
||||||
// 重置列表查询
|
// 重置列表查询
|
||||||
handleReset() {
|
handleReset() {
|
||||||
this.datetimerange = null;
|
this.datetimerange = null
|
||||||
this.handleDatetimeChange();
|
this.handleDatetimeChange()
|
||||||
this.searchData = searchDataDefault();
|
this.searchData = searchDataDefault()
|
||||||
this.getList();
|
this.getList()
|
||||||
},
|
},
|
||||||
// 排序
|
// 排序
|
||||||
handleSortByColumn(column) {
|
handleSortByColumn(column) {
|
||||||
if (column.order === "ascending") {
|
if (column.order === 'ascending') {
|
||||||
this.searchData.Asc = true;
|
this.searchData.Asc = true
|
||||||
} else {
|
} 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();
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -75,6 +75,15 @@
|
||||||
>
|
>
|
||||||
{{ $t('common:button:reset') }}
|
{{ $t('common:button:reset') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
|
<!--导出-->
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
icon="el-icon-download"
|
||||||
|
:disabled="list.length <= 0"
|
||||||
|
@click="handleExport"
|
||||||
|
>
|
||||||
|
{{ $t('common:button:export') }}
|
||||||
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</template>
|
</template>
|
||||||
|
@ -208,6 +217,7 @@ import {
|
||||||
import BaseContainer from '@/components/BaseContainer'
|
import BaseContainer from '@/components/BaseContainer'
|
||||||
import Pagination from '@/components/Pagination'
|
import Pagination from '@/components/Pagination'
|
||||||
import moment from 'moment'
|
import moment from 'moment'
|
||||||
|
import { getSCPImageUploadList_Export } from '@/api/export'
|
||||||
const searchDataDefault = () => {
|
const searchDataDefault = () => {
|
||||||
return {
|
return {
|
||||||
CallingAE: null,
|
CallingAE: null,
|
||||||
|
@ -315,6 +325,14 @@ export default {
|
||||||
this.searchData.PageIndex = 1
|
this.searchData.PageIndex = 1
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
|
// 导出
|
||||||
|
async handleExport() {
|
||||||
|
try {
|
||||||
|
return getSCPImageUploadList_Export(this.searchData)
|
||||||
|
} catch (err) {
|
||||||
|
consol.log(err)
|
||||||
|
}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue