|
|
@@ -34,6 +34,9 @@
|
|
|
check-strictly
|
|
|
placeholder="请选择所属部门"
|
|
|
class="protocal-select"
|
|
|
+ :filter-node-method="filterDept"
|
|
|
+ filterable
|
|
|
+ clearable
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
|
|
|
@@ -174,6 +177,7 @@
|
|
|
const staffNoOptions = ref<TransformedTreeNode[]>([]);
|
|
|
const OrganizationSourceData = ref<OrganizationUserTree[]>([]);
|
|
|
const departmentArr = ref<OptionsProps[]>([]);
|
|
|
+ const sourceDepartArr = ref<OptionsProps[]>([]);
|
|
|
|
|
|
const remoteMethod = (query: string) => {
|
|
|
if (query) {
|
|
|
@@ -313,6 +317,10 @@
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+ function filterDept(val, data) {
|
|
|
+ return data.label.includes(val);
|
|
|
+ }
|
|
|
+
|
|
|
watch(
|
|
|
() => props.departmentList,
|
|
|
(newVal) => {
|