platform/src/components/common/DepartmentSelect.vue
@@ -36,7 +36,6 @@ appendToBody: { default: false }, // 需被排除的部门ID excludeId: {} }, @@ -46,21 +45,16 @@ } }, watch: { excludeId () { console.log(this.type); this.fetchData() }, type() { console.log(this.type); value () { this.fetchData() } }, methods: { // 获取所有部门 fetchData () { console.log(this.type); fetchTree() .then(records => { // debugger this.data = [] this.__fillData(this.data, records) })