配置取消按钮数据重置、检查部位编辑问题
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
c6cc83aeec
commit
426faba24c
|
@ -134,6 +134,18 @@
|
|||
>
|
||||
{{ $t("trials:trialCfg:button:updateAndConfirm") }}
|
||||
</el-button>
|
||||
<!-- 取消 -->
|
||||
<el-button
|
||||
v-if="
|
||||
form.IsTrialPACSConfirmed === true &&
|
||||
isEdit &&
|
||||
hasPermi(['trials:trials-panel:setting:trial-config:save'])
|
||||
"
|
||||
type="primary"
|
||||
@click.stop="confirmCancel"
|
||||
>
|
||||
{{ $t("common:button:cancel") }}
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<!-- 配置信息签名框 -->
|
||||
|
@ -377,6 +389,11 @@ export default {
|
|||
initForm(res) {
|
||||
this.getInfo();
|
||||
},
|
||||
// 取消配置更新
|
||||
confirmCancel() {
|
||||
this.isEdit = false;
|
||||
this.form = { ...this.initialForm };
|
||||
},
|
||||
// 测试dicomAE
|
||||
async testSCPServerConnect() {
|
||||
try {
|
||||
|
|
|
@ -270,7 +270,7 @@
|
|||
hasPermi(['trials:trials-panel:setting:trial-config:save'])
|
||||
"
|
||||
type="primary"
|
||||
@click="isEdit = false"
|
||||
@click="confirmCancel"
|
||||
>
|
||||
{{ $t("common:button:cancel") }}
|
||||
</el-button>
|
||||
|
@ -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;
|
||||
|
@ -1008,6 +1019,7 @@ export default {
|
|||
};
|
||||
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;
|
||||
|
|
|
@ -83,7 +83,7 @@
|
|||
<el-button
|
||||
v-if="form.IsTrialUrgentConfirmed === true && isEdit && hasPermi(['trials:trials-panel:setting:trial-config:save'])"
|
||||
type="primary"
|
||||
@click="isEdit = false"
|
||||
@click="confirmCancel"
|
||||
>
|
||||
{{ $t('common:button:cancel') }}
|
||||
</el-button>
|
||||
|
@ -238,6 +238,11 @@ export default {
|
|||
}
|
||||
},
|
||||
methods: {
|
||||
// 取消配置更新
|
||||
confirmCancel() {
|
||||
this.isEdit = false;
|
||||
this.form = { ...this.initialForm };
|
||||
},
|
||||
// 配置信息保存
|
||||
handleSave() {
|
||||
this.$refs['urgentConfigForm'].validate((valid) => {
|
||||
|
|
Loading…
Reference in New Issue