检查部位字典变更
continuous-integration/drone/push Build is passing Details

uat_us
wangxiaoshuang 2024-06-07 15:09:27 +08:00
parent 4c98f91677
commit eaba3520e9
6 changed files with 43 additions and 29 deletions

View File

@ -82,10 +82,14 @@ export default {
studyList: [], studyList: [],
subjectVisitId: '', subjectVisitId: '',
sudyId: '', sudyId: '',
loading: false loading: false,
bp:[]
} }
}, },
mounted() { async created(){
this.bp = await this.$getBodyPart(this.$route.query.trialId);
},
async mounted() {
if (this.$router.currentRoute.query.TokenKey) { if (this.$router.currentRoute.query.TokenKey) {
store.dispatch('user/setToken', this.$router.currentRoute.query.TokenKey) store.dispatch('user/setToken', this.$router.currentRoute.query.TokenKey)
changeURLStatic('TokenKey', '') changeURLStatic('TokenKey', '')
@ -107,9 +111,8 @@ export default {
separator = '' separator = ''
} }
var arr = bodyPart.split(separator) var arr = bodyPart.split(separator)
let bp = await this.$getBodyPart(this.$route.query.trialId)
var newArr = arr.map(i => { var newArr = arr.map(i => {
return this.$fd('Bodypart', i.trim(),'Code',{Bodypart:bp},'Name') return this.$fd('Bodypart', i.trim(),'Code',{Bodypart:this.bp},'Name')
}) })
return newArr.join(' | ') return newArr.join(' | ')
}, },

View File

@ -95,10 +95,12 @@ export default {
subjectCode: '', subjectCode: '',
visistTaskId: '', visistTaskId: '',
taskBlindName: '', taskBlindName: '',
readingTaskState: 2 readingTaskState: 2,
bp:[]
} }
}, },
mounted() { async mounted() {
this.bp = await this.$getBodyPart(this.$route.query.trialId)
if (this.$router.currentRoute.query.TokenKey) { if (this.$router.currentRoute.query.TokenKey) {
store.dispatch('user/setToken', this.$router.currentRoute.query.TokenKey) store.dispatch('user/setToken', this.$router.currentRoute.query.TokenKey)
changeURLStatic('TokenKey', '') changeURLStatic('TokenKey', '')
@ -174,7 +176,7 @@ export default {
preview() { preview() {
this.previewVisible = true this.previewVisible = true
}, },
async getBodyPart(bodyPart) { getBodyPart(bodyPart) {
if (!bodyPart) return '' if (!bodyPart) return ''
var separator = ',' var separator = ','
if (bodyPart.indexOf('|') > -1) { if (bodyPart.indexOf('|') > -1) {
@ -185,9 +187,8 @@ export default {
separator = '' separator = ''
} }
var arr = bodyPart.split(separator) var arr = bodyPart.split(separator)
let bp = await this.$getBodyPart(this.$route.query.trialId)
var newArr = arr.map(i => { var newArr = arr.map(i => {
return this.$fd('Bodypart', i.trim(),'Code',{Bodypart:bp},'Name') return this.$fd('Bodypart', i.trim(),'Code',{Bodypart:this.bp},'Name')
}) })
return newArr.join(' | ') return newArr.join(' | ')
} }

View File

@ -154,7 +154,8 @@ export default {
associatedList: [], associatedList: [],
currentTaskId: '', currentTaskId: '',
otherInfo: null, otherInfo: null,
isReadingShowPreviousResults: false isReadingShowPreviousResults: false,
bp:[]
} }
}, },
computed: { computed: {
@ -162,7 +163,8 @@ export default {
return this.otherInfo && this.otherInfo.IsReadingShowPreviousResults && this.isReadingShowPreviousResults return this.otherInfo && this.otherInfo.IsReadingShowPreviousResults && this.isReadingShowPreviousResults
} }
}, },
mounted() { async mounted() {
this.bp = await this.$getBodyPart(this.$route.query.trialId)
this.isReadingShowPreviousResults = this.$router.currentRoute.query.isReadingShowPreviousResults !== undefined ? this.$router.currentRoute.query.isReadingShowPreviousResults : true this.isReadingShowPreviousResults = this.$router.currentRoute.query.isReadingShowPreviousResults !== undefined ? this.$router.currentRoute.query.isReadingShowPreviousResults : true
this.getNoneDicomList(this.isReadingShowPreviousResults) this.getNoneDicomList(this.isReadingShowPreviousResults)
@ -267,7 +269,7 @@ export default {
}) })
window.open(routeData.href, '_blank') window.open(routeData.href, '_blank')
}, },
async getBodyPart(bodyPart) { getBodyPart(bodyPart) {
if (!bodyPart) return '' if (!bodyPart) return ''
var separator = ',' var separator = ','
if (bodyPart.indexOf('|') > -1) { if (bodyPart.indexOf('|') > -1) {
@ -278,9 +280,8 @@ export default {
separator = '' separator = ''
} }
var arr = bodyPart.split(separator) var arr = bodyPart.split(separator)
let bp = await this.$getBodyPart(this.$route.query.trialId)
var newArr = arr.map(i => { var newArr = arr.map(i => {
return this.$fd('Bodypart', i.trim(),'Code',{Bodypart:bp},'Name') return this.$fd('Bodypart', i.trim(),'Code',{Bodypart:this.bp},'Name')
}) })
return newArr.join(' | ') return newArr.join(' | ')
} }

View File

@ -349,10 +349,12 @@ export default {
previewNonDicomVisible: false, previewNonDicomVisible: false,
trialId: this.$route.query.trialId, trialId: this.$route.query.trialId,
tokenKey: getToken(), tokenKey: getToken(),
openWindow: null openWindow: null,
bp:[]
} }
}, },
mounted() { async mounted() {
this.bp = await this.$getBodyPart(this.$route.query.trialId)
this.getSite() this.getSite()
this.getVisitPlanOptions() this.getVisitPlanOptions()
this.getList() this.getList()
@ -476,7 +478,7 @@ export default {
} }
}).catch(() => { this.loading = false }) }).catch(() => { this.loading = false })
}, },
async getBodyPart(bodyPart) { getBodyPart(bodyPart) {
if (!bodyPart) return '' if (!bodyPart) return ''
var separator = ',' var separator = ','
if (bodyPart.indexOf('|') > -1) { if (bodyPart.indexOf('|') > -1) {
@ -487,9 +489,8 @@ export default {
separator = '' separator = ''
} }
var arr = bodyPart.split(separator) var arr = bodyPart.split(separator)
let bp = await this.$getBodyPart(this.$route.query.trialId)
var newArr = arr.map(i => { var newArr = arr.map(i => {
return this.$fd('Bodypart', i.trim(),'Code',{Bodypart:bp},'Name') return this.$fd('Bodypart', i.trim(),'Code',{Bodypart:this.bp},'Name')
}) })
return newArr.join(' | ') return newArr.join(' | ')
}, },

View File

@ -190,9 +190,11 @@ export default {
seriesList: [], seriesList: [],
moment, moment,
trialId: this.$route.query.trialId, trialId: this.$route.query.trialId,
bp:[]
} }
}, },
mounted() { async mounted() {
this.bp = await this.$getBodyPart(this.$route.query.trialId)
this.getList() this.getList()
}, },
methods: { methods: {
@ -235,7 +237,7 @@ export default {
}) })
this.open = window.open(routeData.href, '_blank') this.open = window.open(routeData.href, '_blank')
}, },
async getBodyPart(bodyPart) { getBodyPart(bodyPart) {
if (!bodyPart) return '' if (!bodyPart) return ''
var separator = ',' var separator = ','
if (bodyPart.indexOf('|') > -1) { if (bodyPart.indexOf('|') > -1) {
@ -246,9 +248,8 @@ export default {
separator = '' separator = ''
} }
var arr = bodyPart.split(separator) var arr = bodyPart.split(separator)
let bp = await this.$getBodyPart(this.$route.query.trialId)
var newArr = arr.map(i => { var newArr = arr.map(i => {
return this.$fd('Bodypart', i.trim(),'Code',{Bodypart:bp},'Name') return this.$fd('Bodypart', i.trim(),'Code',{Bodypart:this.bp},'Name')
}) })
return newArr.join(' | ') return newArr.join(' | ')
}, },

View File

@ -174,10 +174,12 @@ export default {
petVisible: false, petVisible: false,
rowData: {}, rowData: {},
relationInfo: {}, relationInfo: {},
bp: [],
}; };
}, },
mounted() { async mounted() {
this.getStudyInfo(); this.getStudyInfo();
this.bp = await this.$getBodyPart(this.$route.query.trialId);
}, },
methods: { methods: {
// //
@ -237,7 +239,7 @@ export default {
}); });
window.open(routeData.href, "_blank"); window.open(routeData.href, "_blank");
}, },
async getBodyPart(bodyPart) { getBodyPart(bodyPart) {
if (!bodyPart) return ""; if (!bodyPart) return "";
var separator = ","; var separator = ",";
if (bodyPart.indexOf("|") > -1) { if (bodyPart.indexOf("|") > -1) {
@ -248,10 +250,15 @@ export default {
separator = ""; separator = "";
} }
var arr = bodyPart.split(separator); var arr = bodyPart.split(separator);
let bp = await this.$getBodyPart(this.$route.query.trialId) var newArr = arr.map((i) => {
var newArr = arr.map(i => { return this.$fd(
return this.$fd('Bodypart', i.trim(),'Code',{Bodypart:bp},'Name') "Bodypart",
}) i.trim(),
"Code",
{ Bodypart: this.bp },
"Name"
);
});
return newArr.join(" | "); return newArr.join(" | ");
}, },
// //