检查部位中英文切换
continuous-integration/drone/push Build is passing Details

uat_us
wangxiaoshuang 2024-06-14 13:04:20 +08:00
parent 183723370a
commit b5b0d24c97
1 changed files with 32 additions and 14 deletions

View File

@ -904,9 +904,9 @@ export default {
}, },
}; };
}, },
created() { // created() {
this.getTrialBodyPartList(); // this.getTrialBodyPartList();
}, // },
methods: { methods: {
handleConfirmModality() { handleConfirmModality() {
this.form.ModalityList = Object.assign( this.form.ModalityList = Object.assign(
@ -961,14 +961,16 @@ export default {
let obj = this.trialBodyPartList.filter( let obj = this.trialBodyPartList.filter(
(item) => item.Code === data.Code (item) => item.Code === data.Code
); );
console.log(obj);
this.$refs.bodyPartTable.toggleRowSelection(obj[0]); this.$refs.bodyPartTable.toggleRowSelection(obj[0]);
}); });
} }
} }
return true;
} }
return false;
} catch (err) { } catch (err) {
console.log(err); console.log(err);
return false;
} }
}, },
// //
@ -1006,7 +1008,7 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
var a = this.trialBodyPartList.filter((v) => { var a = this.trialBodyPartList.filter((v) => {
return !!this.form.BodyPartTypeList.find((v1) => { return !!this.form.BodyPartTypeList.find((v1) => {
return v1 === v.Name; return v1 === v.Code;
}); });
}); });
this.toggleBodyPartSelection(a); this.toggleBodyPartSelection(a);
@ -1024,9 +1026,11 @@ export default {
handleConfirmBodyParts() { handleConfirmBodyParts() {
this.form.BodyPartTypeList = Object.assign( this.form.BodyPartTypeList = Object.assign(
[], [],
this.selectedBodyParts.map((v) => v.Name) this.selectedBodyParts.map((v) => v.Code)
); );
var bodyPartTypes = this.form.BodyPartTypeList; var bodyPartTypes = this.form.BodyPartTypeList.map((i) => {
return this.changeBodyPart(i.trim());
});
this.form.BodyPartTypes = bodyPartTypes.join(" | "); this.form.BodyPartTypes = bodyPartTypes.join(" | ");
this.bodyPartListVisible = false; this.bodyPartListVisible = false;
}, },
@ -1257,13 +1261,27 @@ export default {
" | " " | "
); );
this.form.BodyPartTypeList = this.form.BodyPartTypes.split("|"); this.form.BodyPartTypeList = this.form.BodyPartTypes.split("|");
var bodyPartTypes = this.form.BodyPartTypeList.map((i) => { let r = await this.getTrialBodyPartList();
return i.trim(); if (r) {
}); var bodyPartTypes = this.form.BodyPartTypeList.map((i) => {
this.form.BodyPartTypes = bodyPartTypes.toString().replaceAll(",", " | "); return this.changeBodyPart(i.trim());
// this.form.ClinicalDataSetNamesStr = this.form.ClinicalDataSetNames.join(', ') });
this.initialForm = { ...this.form }; this.form.BodyPartTypes = bodyPartTypes
this.loading = false; .toString()
.replaceAll(",", " | ");
// this.form.ClinicalDataSetNamesStr = this.form.ClinicalDataSetNames.join(', ')
this.initialForm = { ...this.form };
this.loading = false;
}
},
// bodyPart
changeBodyPart(code) {
let arr = this.trialBodyPartList.filter((item) => item.Code === code);
if (arr[0]) {
return arr[0].Name;
} else {
return null;
}
}, },
// //
getClinicalDataList(isSelect = false) { getClinicalDataList(isSelect = false) {