检查部位中英文切换
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
183723370a
commit
b5b0d24c97
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue