diff --git a/pages/work/profile.vue b/pages/work/profile.vue index 519d3a4..27e82f5 100644 --- a/pages/work/profile.vue +++ b/pages/work/profile.vue @@ -116,14 +116,15 @@ const rule = computed(() => { title: { name: "职称", disabled: false }, dept: { name: "科室", disabled: false }, } + if (doctorInfo.value) { + data.job.name = "岗位 (不可修改)"; + data.job.disabled = true; + } if (doctorInfo.value && ["verified", "verifying"].includes(doctorInfo.value.verifyStatus)) { data.anotherName.name = "姓名 (不可修改)"; data.anotherName.required = false; data.anotherName.disabled = true; - data.job.name = "岗位 (不可修改)"; - data.job.disabled = true; - // data.title.name = doctorInfo.value.verifyStatus === 'verified' ? "职称 (不可修改)" : "职称"; // data.title.disabled = doctorInfo.value.verifyStatus === 'verified'; @@ -174,10 +175,10 @@ function onChange({ title, value }) { } function changeJob(e) { + if (rule.value.job.disabled) return; const data = jobOptions[e.detail.value]; form.value.job = [data.value]; } - function changeTitle(e) { const data = titleList[e.detail.value]; form.value.title = data || '';