Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is running Details

uat_us
caiyiling 2024-06-14 13:23:38 +08:00
commit 46b2744bc3
3 changed files with 40 additions and 16 deletions

View File

@ -153,7 +153,13 @@ export default {
clearInterval(this.timer); clearInterval(this.timer);
this.timer = null; this.timer = null;
} }
let res = await sendMFAEmail(this.form); let data = {
UserId: this.form.UserId,
};
if (this.status === "lock") {
data.MfaType = 1;
}
let res = await sendMFAEmail(data);
this.sendFlag = false; this.sendFlag = false;
if (res.IsSuccess) { if (res.IsSuccess) {
this.flag = true; this.flag = true;

View File

@ -432,7 +432,7 @@ async function VueInit() {
}, 500) }, 500)
} }
if (process.env.VUE_APP_OSS_CONFIG_BUCKET === 'zyypacs-usa') { if (process.env.VUE_APP_OSS_CONFIG_BUCKET === 'zyypacs-usa') {
sendMFAEmail({ UserId: my_userid }).then((res) => { sendMFAEmail({ UserId: my_userid, MfaType: 1 }).then((res) => {
done(); done();
Vue.prototype.$MFA({ Vue.prototype.$MFA({
status: "lock", status: "lock",

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) {