|
@@ -1,7 +1,8 @@
|
|
|
import { TreeSelect } from 'antd';
|
|
|
import React, { useState, useEffect } from 'react';
|
|
|
-import { queryDDdepList } from '@/services/boom';
|
|
|
import { connect } from 'dva';
|
|
|
+// import { queryDDdepList } from '@/services/boom';
|
|
|
+// import { queryDDdepList } from '@/services/boom';
|
|
|
|
|
|
function DepartmentField(props) {
|
|
|
const { value = [], onChange, depUserTree } = props;
|
|
@@ -17,9 +18,9 @@ function DepartmentField(props) {
|
|
|
// };
|
|
|
// };
|
|
|
|
|
|
- // const onLoadData = async () => {
|
|
|
- // let depList = await queryDDdepList();
|
|
|
- //
|
|
|
+ // const onLoadData = async ({ id }) => {
|
|
|
+ // let depList = await queryDDdepList({ dept_id: id });
|
|
|
+
|
|
|
// console.log(depList);
|
|
|
// if (depList.length > 0) {
|
|
|
// let nodes = depList.map(genTreeNode);
|
|
@@ -34,7 +35,7 @@ function DepartmentField(props) {
|
|
|
return (
|
|
|
<TreeSelect
|
|
|
showSearch
|
|
|
- // multiple
|
|
|
+ // // multiple
|
|
|
allowClear
|
|
|
defaultValue={value}
|
|
|
dropdownStyle={{
|