pacs拉取问题修复
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
3c15561485
commit
098e3c888a
|
@ -225,7 +225,31 @@
|
||||||
@selection-change="handleSelectionChange"
|
@selection-change="handleSelectionChange"
|
||||||
>
|
>
|
||||||
<el-table-column type="selection" width="55" />
|
<el-table-column type="selection" width="55" />
|
||||||
<el-table-column type="index" width="40" />
|
<el-table-column type="index" width="40">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span
|
||||||
|
style="
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: flex-end;
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<el-tooltip
|
||||||
|
class="item"
|
||||||
|
effect="dark"
|
||||||
|
:content="$t('trials:inspection:pullImage:tip:has')"
|
||||||
|
placement="top"
|
||||||
|
style="margin-right: 3px"
|
||||||
|
>
|
||||||
|
<i
|
||||||
|
v-if="scope.row.IsStudyExist"
|
||||||
|
class="el-icon-success icon-i"
|
||||||
|
></i>
|
||||||
|
</el-tooltip>
|
||||||
|
<span>{{ scope.$index + 1 }}</span>
|
||||||
|
</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<!--patientID-->
|
<!--patientID-->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="PatientID"
|
prop="PatientID"
|
||||||
|
@ -247,7 +271,7 @@
|
||||||
prop="PatientSex"
|
prop="PatientSex"
|
||||||
:label="$t('trials:inspection:pullImage:table:patientSex')"
|
:label="$t('trials:inspection:pullImage:table:patientSex')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
min-width="120"
|
min-width="80"
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
@ -302,13 +326,13 @@
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
<!--bodyPartExamined-->
|
<!--bodyPartExamined-->
|
||||||
<el-table-column
|
<!-- <el-table-column
|
||||||
prop="BodyPartExamined"
|
prop="BodyPartExamined"
|
||||||
:label="$t('trials:inspection:pullImage:table:bodyPartExamined')"
|
:label="$t('trials:inspection:pullImage:table:bodyPartExamined')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
min-width="120"
|
min-width="120"
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/> -->
|
||||||
<!--studyDescription-->
|
<!--studyDescription-->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="StudyDescription"
|
prop="StudyDescription"
|
||||||
|
@ -331,7 +355,8 @@
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
circle
|
circle
|
||||||
icon="el-icon-download"
|
icon="el-icon-refresh"
|
||||||
|
class="refreshBtn"
|
||||||
:title="$t('trials:inspection:button:pull')"
|
:title="$t('trials:inspection:button:pull')"
|
||||||
@click.stop="pullImage(scope.row)"
|
@click.stop="pullImage(scope.row)"
|
||||||
/>
|
/>
|
||||||
|
@ -456,8 +481,10 @@ export default {
|
||||||
onClick: (picker) => {
|
onClick: (picker) => {
|
||||||
const end = new Date()
|
const end = new Date()
|
||||||
const start = new Date()
|
const start = new Date()
|
||||||
if (!this.timeFrame || this.timeFrame > 30) {
|
let month = this.$moment().subtract(1, 'months')
|
||||||
start.setTime(start.getTime() - 3600 * 1000 * 24 * 29)
|
let day = this.$moment().diff(month, 'day')
|
||||||
|
if (!this.timeFrame || this.timeFrame > day) {
|
||||||
|
start.setTime(start.getTime() - 3600 * 1000 * 24 * (day - 1))
|
||||||
} else {
|
} else {
|
||||||
start.setTime(
|
start.setTime(
|
||||||
start.getTime() - 3600 * 1000 * 24 * (this.timeFrame - 1)
|
start.getTime() - 3600 * 1000 * 24 * (this.timeFrame - 1)
|
||||||
|
@ -472,8 +499,10 @@ export default {
|
||||||
onClick: (picker) => {
|
onClick: (picker) => {
|
||||||
const end = new Date()
|
const end = new Date()
|
||||||
const start = new Date()
|
const start = new Date()
|
||||||
if (!this.timeFrame || this.timeFrame > 90) {
|
let month = this.$moment().subtract(3, 'months')
|
||||||
start.setTime(start.getTime() - 3600 * 1000 * 24 * 89)
|
let day = this.$moment().diff(month, 'day')
|
||||||
|
if (!this.timeFrame || this.timeFrame > day) {
|
||||||
|
start.setTime(start.getTime() - 3600 * 1000 * 24 * (day - 1))
|
||||||
} else {
|
} else {
|
||||||
start.setTime(
|
start.setTime(
|
||||||
start.getTime() - 3600 * 1000 * 24 * (this.timeFrame - 1)
|
start.getTime() - 3600 * 1000 * 24 * (this.timeFrame - 1)
|
||||||
|
@ -563,7 +592,10 @@ export default {
|
||||||
let message = this.$t(
|
let message = this.$t(
|
||||||
'trials:inspection:pullImage:confirm:limit50'
|
'trials:inspection:pullImage:confirm:limit50'
|
||||||
).replace('xx', MaxStudyCount)
|
).replace('xx', MaxStudyCount)
|
||||||
this.$confirm(message)
|
this.$confirm(message, 'hahaha', {
|
||||||
|
type: 'warning',
|
||||||
|
showCancelButton: false,
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
@ -577,7 +609,7 @@ export default {
|
||||||
CalledAE: null,
|
CalledAE: null,
|
||||||
IP: null,
|
IP: null,
|
||||||
Port: null,
|
Port: null,
|
||||||
// PacsTypeEnum: 2,
|
PacsTypeEnum: 2,
|
||||||
PageIndex: 1,
|
PageIndex: 1,
|
||||||
PageSize: 1000,
|
PageSize: 1000,
|
||||||
SortField: 'CreateTime',
|
SortField: 'CreateTime',
|
||||||
|
@ -635,10 +667,10 @@ export default {
|
||||||
// 表格排序
|
// 表格排序
|
||||||
handleSortByColumn(sort) {
|
handleSortByColumn(sort) {
|
||||||
if (sort.order === 'ascending') {
|
if (sort.order === 'ascending') {
|
||||||
this.list.sort((a, b) => a[sort.prop] - b[sort.prop])
|
this.list.sort((a, b) => (a[sort.prop] > b[sort.prop] ? 1 : -1))
|
||||||
}
|
}
|
||||||
if (sort.order === 'descending') {
|
if (sort.order === 'descending') {
|
||||||
this.list.sort((a, b) => b[sort.prop] - a[sort.prop])
|
this.list.sort((a, b) => (b[sort.prop] > a[sort.prop] ? 1 : -1))
|
||||||
}
|
}
|
||||||
this.paging()
|
this.paging()
|
||||||
},
|
},
|
||||||
|
@ -669,13 +701,19 @@ export default {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
let message = this.$t('trials:inspection:pullImage:confirm:pull')
|
let message = this.$t('trials:inspection:pullImage:confirm:pull')
|
||||||
|
let patientMessage = ''
|
||||||
if (isPullList.length > 0) {
|
if (isPullList.length > 0) {
|
||||||
message =
|
isPullList.forEach((key) => {
|
||||||
isPullList.join('<br/>') +
|
patientMessage += `患者:${r[key].PatientName},检查申请号:${r[key].AccessionNumber}<br/>`
|
||||||
'<br/>' +
|
})
|
||||||
this.$t('trials:inspection:pullImage:message:isHasPull') +
|
if (patientMessage) {
|
||||||
',' +
|
message =
|
||||||
message
|
patientMessage +
|
||||||
|
'<br/>' +
|
||||||
|
this.$t('trials:inspection:pullImage:message:isHasPull') +
|
||||||
|
',' +
|
||||||
|
message
|
||||||
|
}
|
||||||
}
|
}
|
||||||
let confirm = await this.$confirm(message, '', {
|
let confirm = await this.$confirm(message, '', {
|
||||||
dangerouslyUseHTMLString: true,
|
dangerouslyUseHTMLString: true,
|
||||||
|
@ -700,4 +738,18 @@ export default {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.icon-i {
|
||||||
|
color: #67c23a;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.refreshBtn {
|
||||||
|
// transform: rotate(0);
|
||||||
|
transition: 0.5s;
|
||||||
|
&:hover {
|
||||||
|
transform: rotate(180deg);
|
||||||
|
transition: 0.5s;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -69,6 +69,15 @@
|
||||||
:default-sort="{ prop: 'StudyTime', order: 'descending' }"
|
:default-sort="{ prop: 'StudyTime', order: 'descending' }"
|
||||||
>
|
>
|
||||||
<el-table-column type="index" width="40" />
|
<el-table-column type="index" width="40" />
|
||||||
|
<!--检查申请号-->
|
||||||
|
<el-table-column
|
||||||
|
align="center"
|
||||||
|
prop="AccessionNumber"
|
||||||
|
:label="$t('trials:inspection:table:AccessionNumber')"
|
||||||
|
show-overflow-tooltip
|
||||||
|
min-width="120"
|
||||||
|
sortable="custom"
|
||||||
|
></el-table-column>
|
||||||
<!--检查描述-->
|
<!--检查描述-->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
align="center"
|
align="center"
|
||||||
|
|
Loading…
Reference in New Issue