app/pagesTask/components/DepartmentSelector.vue
@@ -100,10 +100,11 @@ departmentOptions: { immediate: true, handler() { if (this.value) { this.updateSelectedIndex(this.value) } else if (this.departmentId) { // 优先使用科室ID进行匹配,如果没有科室ID再使用科室名称 if (this.departmentId) { this.updateSelectedIndexById(this.departmentId) } else if (this.value) { this.updateSelectedIndex(this.value) } } } @@ -225,6 +226,4 @@ color: #999; } } } </style> }