推送工具
continuous-integration/drone/push Build is passing Details

main
wangxiaoshuang 2025-09-08 15:46:00 +08:00
parent b80a17b205
commit e165d5110e
3 changed files with 127 additions and 2 deletions

View File

@ -265,7 +265,13 @@ export function getCommonDocumentList(param) {
data: param data: param
}) })
} }
export function getCommonDocument(param) {
return request({
url: `/CommonDocument/getCommonDocument`,
method: 'get',
params: param
})
}
export function addOrUpdateCommonDocument(param) { export function addOrUpdateCommonDocument(param) {
return request({ return request({
url: `/CommonDocument/addOrUpdateCommonDocument`, url: `/CommonDocument/addOrUpdateCommonDocument`,

View File

@ -0,0 +1,115 @@
<template>
<div>
<el-descriptions :column="1" border style="width: 600px">
<!--项目类型-->
<el-descriptions-item :label="$t('trials:inspection:pullImage:title:toolDownload')">
<el-button type="text" @click="handleDownload">
{{ $t('trials:inspection:pullImage:button:toolDownload') }}
</el-button>
</el-descriptions-item>
<!--项目编号-->
<el-descriptions-item>
<span slot="label">
{{ $t('trials:inspection:pullImage:title:hirAE') }}
<i class="el-icon-warning" style="cursor: pointer;"
:title="$t('trials:inspection:pullImage:tip:hirAE')" />
</span>
<el-form ref="hirAEform" :model="hirAE" label-width="120px">
<el-form-item :label="$t('trials:inspection:pullImage:form:hirAEName')">
<span>{{ hirAE.CalledAE }}</span>
</el-form-item>
<el-form-item :label="$t('trials:inspection:pullImage:form:hirAIP')">
<span>{{ hirAE.IP }}</span>
</el-form-item>
<el-form-item :label="$t('trials:inspection:pullImage:form:hirAPort')">
<span>{{ hirAE.Port }}</span>
</el-form-item>
</el-form>
</el-descriptions-item>
<el-descriptions-item>
<span slot="label">
{{ $t('trials:inspection:pullImage:title:groupAE') }}
<i class="el-icon-warning" style="cursor: pointer;"
:title="$t('trials:inspection:pullImage:tip:groupAE')" />
</span>
<el-form ref="groupAEAEform" label-width="120px">
<el-form-item v-for="item of groupAEList" :key="item.Id" :label="`${item.Name}: `">
<span>{{ item.CallingAE }}</span>
</el-form-item>
</el-form>
</el-descriptions-item>
</el-descriptions>
</div>
</template>
<script>
import { getDicomAEList } from '@/api/dicomAE.js'
import { getUser } from '@/api/admin'
import { getCommonDocument } from '@/api/dictionary'
import { downLoadFile } from '@/utils/stream.js'
export default {
name: "byTool",
data() {
return {
hirAE: {},
groupAEList: []
}
},
created() {
this.getHirAE()
this.getGroupAE()
},
computed: {
isEN() {
return this.$i18n.locale !== 'zh'
},
},
methods: {
async getHirAE() {
try {
let data = { PacsTypeEnum: 0, PageIndex: 1, PageSize: 20, }
let res = await getDicomAEList(data)
if (res.IsSuccess) {
this.hirAE = res.Result.CurrentPageData[0]
}
} catch (err) {
console.log(err)
}
},
async getGroupAE() {
try {
let res = await getUser()
if (res.IsSuccess) {
this.groupAEList = res.Result.HospitalGroupList
}
} catch (err) {
console.log(err)
}
},
//
async handleDownload() {
try {
this.downloading = true
let res = await getCommonDocument({ Code: 'DICOMScannerAndSender' })
if (res.IsSuccess) {
let row = res.Result
let fileName = this.isEN ? row.Name : row.NameCN;
let type = fileName
.substring(fileName.lastIndexOf('.'))
.toLocaleLowerCase()
if (!type) {
let extendName = row.Path
.substring(row.Path.lastIndexOf('.'))
.toLocaleLowerCase()
fileName += extendName
}
res = await downLoadFile(this.OSSclientConfig.basePath + row.Path, fileName)
}
this.downloading = false
} catch (err) {
this.downloading = false
}
},
}
}
</script>
<style lang="scss" scoped></style>

View File

@ -10,15 +10,19 @@
<byTrials :calledAeList="calledAeList" :callingAeList="callingAeList" <byTrials :calledAeList="calledAeList" :callingAeList="callingAeList"
v-if="activeName === 'byTrials'" /> v-if="activeName === 'byTrials'" />
</el-tab-pane> </el-tab-pane>
<el-tab-pane :label="$t('trials:inspection:pullImage:title:byTool')" name="byTool">
<byTool :calledAeList="calledAeList" :callingAeList="callingAeList" v-if="activeName === 'byTool'" />
</el-tab-pane>
</el-tabs> </el-tabs>
</el-dialog> </el-dialog>
</template> </template>
<script> <script>
import byPatient from './byPatient.vue' import byPatient from './byPatient.vue'
import byTrials from './byTrials.vue' import byTrials from './byTrials.vue'
import byTool from './byTool.vue'
export default { export default {
name: 'pullImage', name: 'pullImage',
components: { byPatient, byTrials }, components: { byPatient, byTrials, byTool },
props: { props: {
visible: { visible: {
required: true, required: true,