PACS拉取配置信息每次查询获取一次
continuous-integration/drone/push Build is passing Details

main
wangxiaoshuang 2024-12-19 10:35:32 +08:00
parent e9cefc1157
commit c949a0b6fb
1 changed files with 20 additions and 11 deletions

View File

@ -117,7 +117,7 @@
clearable
multiple
collapse-tags
style="width: 140px;"
style="width: 140px"
>
<el-option
v-for="item in ModalityList"
@ -528,12 +528,14 @@ export default {
this.getAEList()
},
methods: {
pacsDicomAEIdChange(val) {
pacsDicomAEIdChange(val, f = false) {
let pacs = this.AElist.find((item) => item.Id === val)
this.ModalityList = pacs.ModalityList
this.timeFrame = pacs.PacsSearchMaxDays
this.MaxStudyCount = pacs.MaxStudyCount
this.handleReset()
if (!f) {
this.handleReset()
}
},
// pacs
async cMoveVerify(data) {
@ -568,7 +570,10 @@ export default {
// data.PatientBirthDate = null
// }
if (this.StudyDate && this.StudyDate[0] && this.StudyDate[1]) {
data.StudyDate = this.StudyDate[0] + '-' + this.StudyDate[1]
data.StudyDate =
this.$moment(this.StudyDate[0]).format('YYYYMMDD') +
'-' +
this.$moment(this.StudyDate[1]).format('YYYYMMDD')
} else {
data.StudyDate = null
}
@ -605,7 +610,7 @@ export default {
}
},
//
async getAEList() {
async getAEList(f = false) {
let data = {
CalledAE: null,
IP: null,
@ -623,10 +628,14 @@ export default {
if (res.IsSuccess) {
this.AElist = res.Result.CurrentPageData
if (this.AElist.length > 0) {
this.searchData.PacsDicomAEId = this.AElist[0].Id
this.ModalityList = this.AElist[0].ModalityList
this.timeFrame = this.AElist[0].PacsSearchMaxDays
this.MaxStudyCount = this.AElist[0].MaxStudyCount
if (!f) {
this.searchData.PacsDicomAEId = this.AElist[0].Id
this.ModalityList = this.AElist[0].ModalityList
this.timeFrame = this.AElist[0].PacsSearchMaxDays
this.MaxStudyCount = this.AElist[0].MaxStudyCount
} else {
this.pacsDicomAEIdChange(this.searchData.PacsDicomAEId, true)
}
this.getList()
}
}
@ -646,12 +655,12 @@ export default {
//
handleSearch() {
// this.searchData.PageIndex = 1
this.getList()
this.getAEList(true)
},
//
handleReset() {
this.reset()
this.getList()
this.getAEList(true)
},
//
reset() {