diff --git a/src/views/trials/trials-panel/setting/trial-config/components/dicomConfig.vue b/src/views/trials/trials-panel/setting/trial-config/components/dicomConfig.vue
index b71b9fa0..23c903d4 100644
--- a/src/views/trials/trials-panel/setting/trial-config/components/dicomConfig.vue
+++ b/src/views/trials/trials-panel/setting/trial-config/components/dicomConfig.vue
@@ -134,6 +134,18 @@
>
{{ $t("trials:trialCfg:button:updateAndConfirm") }}
+
+
+ {{ $t("common:button:cancel") }}
+
@@ -377,6 +389,11 @@ export default {
initForm(res) {
this.getInfo();
},
+ // 取消配置更新
+ confirmCancel() {
+ this.isEdit = false;
+ this.form = { ...this.initialForm };
+ },
// 测试dicomAE
async testSCPServerConnect() {
try {
diff --git a/src/views/trials/trials-panel/setting/trial-config/components/logicalConfig.vue b/src/views/trials/trials-panel/setting/trial-config/components/logicalConfig.vue
index 854c399b..3d0117f0 100644
--- a/src/views/trials/trials-panel/setting/trial-config/components/logicalConfig.vue
+++ b/src/views/trials/trials-panel/setting/trial-config/components/logicalConfig.vue
@@ -270,7 +270,7 @@
hasPermi(['trials:trials-panel:setting:trial-config:save'])
"
type="primary"
- @click="isEdit = false"
+ @click="confirmCancel"
>
{{ $t("common:button:cancel") }}
@@ -928,6 +928,11 @@ export default {
// this.getTrialBodyPartList();
// },
methods: {
+ // 取消配置更新
+ confirmCancel() {
+ this.isEdit = false;
+ this.form = { ...this.initialForm };
+ },
handleConfirmModality() {
this.form.ModalityList = Object.assign(
[],
@@ -983,6 +988,12 @@ export default {
);
this.$refs.bodyPartTable.toggleRowSelection(obj[0]);
});
+ var bodyPartTypes = this.form.BodyPartTypeList.map((i) => {
+ return this.changeBodyPart(i.trim());
+ });
+ this.form.BodyPartTypes = bodyPartTypes
+ .toString()
+ .replaceAll(",", " | ");
}
}
return true;
@@ -1006,8 +1017,9 @@ export default {
NameCN: str,
TrialId: this.$route.query.trialId,
};
- if(this.addBodyPartForm.Id){
+ if (this.addBodyPartForm.Id) {
data.Id = this.addBodyPartForm.Id;
+ data.Code = this.addBodyPartForm.Code;
}
let res = await addOrUpdateTrialBodyPart(data);
if (res.IsSuccess) {
@@ -1029,7 +1041,8 @@ export default {
},
// 编辑检查部位
handleEditBodyPart(item) {
- this.addBodyPartForm.bodyPartStr = item.Code;
+ this.addBodyPartForm.bodyPartStr = item.Name;
+ this.addBodyPartForm.Code = item.Code;
this.addBodyPartForm.Id = item.Id;
this.addBodyPart_model.title = this.$t("trials:setting:button:edit");
this.addBodyPart_model.visible = true;
diff --git a/src/views/trials/trials-panel/setting/trial-config/components/urgentConfig.vue b/src/views/trials/trials-panel/setting/trial-config/components/urgentConfig.vue
index 7ecedc31..f8021e39 100644
--- a/src/views/trials/trials-panel/setting/trial-config/components/urgentConfig.vue
+++ b/src/views/trials/trials-panel/setting/trial-config/components/urgentConfig.vue
@@ -83,7 +83,7 @@
{{ $t('common:button:cancel') }}
@@ -238,6 +238,11 @@ export default {
}
},
methods: {
+ // 取消配置更新
+ confirmCancel() {
+ this.isEdit = false;
+ this.form = { ...this.initialForm };
+ },
// 配置信息保存
handleSave() {
this.$refs['urgentConfigForm'].validate((valid) => {