wlzboy
15 小时以前 f08739f46afe856f60ebb1d21ab23d72947629ed
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)
        }
      }
    }
@@ -226,5 +227,4 @@
    }
  }
}
</style>
</style>