配置取消按钮数据重置、检查部位编辑问题
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") }}
|
{{ $t("trials:trialCfg:button:updateAndConfirm") }}
|
||||||
</el-button>
|
</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-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<!-- 配置信息签名框 -->
|
<!-- 配置信息签名框 -->
|
||||||
|
@ -377,6 +389,11 @@ export default {
|
||||||
initForm(res) {
|
initForm(res) {
|
||||||
this.getInfo();
|
this.getInfo();
|
||||||
},
|
},
|
||||||
|
// 取消配置更新
|
||||||
|
confirmCancel() {
|
||||||
|
this.isEdit = false;
|
||||||
|
this.form = { ...this.initialForm };
|
||||||
|
},
|
||||||
// 测试dicomAE
|
// 测试dicomAE
|
||||||
async testSCPServerConnect() {
|
async testSCPServerConnect() {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -270,7 +270,7 @@
|
||||||
hasPermi(['trials:trials-panel:setting:trial-config:save'])
|
hasPermi(['trials:trials-panel:setting:trial-config:save'])
|
||||||
"
|
"
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="isEdit = false"
|
@click="confirmCancel"
|
||||||
>
|
>
|
||||||
{{ $t("common:button:cancel") }}
|
{{ $t("common:button:cancel") }}
|
||||||
</el-button>
|
</el-button>
|
||||||
|
@ -928,6 +928,11 @@ export default {
|
||||||
// this.getTrialBodyPartList();
|
// this.getTrialBodyPartList();
|
||||||
// },
|
// },
|
||||||
methods: {
|
methods: {
|
||||||
|
// 取消配置更新
|
||||||
|
confirmCancel() {
|
||||||
|
this.isEdit = false;
|
||||||
|
this.form = { ...this.initialForm };
|
||||||
|
},
|
||||||
handleConfirmModality() {
|
handleConfirmModality() {
|
||||||
this.form.ModalityList = Object.assign(
|
this.form.ModalityList = Object.assign(
|
||||||
[],
|
[],
|
||||||
|
@ -983,6 +988,12 @@ export default {
|
||||||
);
|
);
|
||||||
this.$refs.bodyPartTable.toggleRowSelection(obj[0]);
|
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;
|
return true;
|
||||||
|
@ -1006,8 +1017,9 @@ export default {
|
||||||
NameCN: str,
|
NameCN: str,
|
||||||
TrialId: this.$route.query.trialId,
|
TrialId: this.$route.query.trialId,
|
||||||
};
|
};
|
||||||
if(this.addBodyPartForm.Id){
|
if (this.addBodyPartForm.Id) {
|
||||||
data.Id = this.addBodyPartForm.Id;
|
data.Id = this.addBodyPartForm.Id;
|
||||||
|
data.Code = this.addBodyPartForm.Code;
|
||||||
}
|
}
|
||||||
let res = await addOrUpdateTrialBodyPart(data);
|
let res = await addOrUpdateTrialBodyPart(data);
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
|
@ -1029,7 +1041,8 @@ export default {
|
||||||
},
|
},
|
||||||
// 编辑检查部位
|
// 编辑检查部位
|
||||||
handleEditBodyPart(item) {
|
handleEditBodyPart(item) {
|
||||||
this.addBodyPartForm.bodyPartStr = item.Code;
|
this.addBodyPartForm.bodyPartStr = item.Name;
|
||||||
|
this.addBodyPartForm.Code = item.Code;
|
||||||
this.addBodyPartForm.Id = item.Id;
|
this.addBodyPartForm.Id = item.Id;
|
||||||
this.addBodyPart_model.title = this.$t("trials:setting:button:edit");
|
this.addBodyPart_model.title = this.$t("trials:setting:button:edit");
|
||||||
this.addBodyPart_model.visible = true;
|
this.addBodyPart_model.visible = true;
|
||||||
|
|
|
@ -83,7 +83,7 @@
|
||||||
<el-button
|
<el-button
|
||||||
v-if="form.IsTrialUrgentConfirmed === true && isEdit && hasPermi(['trials:trials-panel:setting:trial-config:save'])"
|
v-if="form.IsTrialUrgentConfirmed === true && isEdit && hasPermi(['trials:trials-panel:setting:trial-config:save'])"
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="isEdit = false"
|
@click="confirmCancel"
|
||||||
>
|
>
|
||||||
{{ $t('common:button:cancel') }}
|
{{ $t('common:button:cancel') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
|
@ -238,6 +238,11 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 取消配置更新
|
||||||
|
confirmCancel() {
|
||||||
|
this.isEdit = false;
|
||||||
|
this.form = { ...this.initialForm };
|
||||||
|
},
|
||||||
// 配置信息保存
|
// 配置信息保存
|
||||||
handleSave() {
|
handleSave() {
|
||||||
this.$refs['urgentConfigForm'].validate((valid) => {
|
this.$refs['urgentConfigForm'].validate((valid) => {
|
||||||
|
|
Loading…
Reference in New Issue