From d0454614a6747a371254440c18b77dc996842e96 Mon Sep 17 00:00:00 2001 From: zhanchao Date: Fri, 18 Sep 2026 17:00:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=B2=97=E4=BD=8D=E4=B8=8D?= =?UTF-8?q?=E5=8F=AF=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/work/profile.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 || '';