|
@@ -84,7 +84,6 @@ const filterNode = (value: string, data: any) => {
|
|
|
if (!value) return true;
|
|
|
return data.label.indexOf(value) !== -1;
|
|
|
};
|
|
|
-data.queryParams.area_code = '';
|
|
|
|
|
|
const getTreeSelect = async () => {
|
|
|
const res = await inspectorDivision();
|
|
@@ -127,8 +126,8 @@ watch(queryParams, () => {
|
|
|
|
|
|
const handleNodeClick = (data: any) => {
|
|
|
queryParams.value.deptId = data.id;
|
|
|
- queryParams.value.area_code = data.code; // 设置area_code为点击节点的code值
|
|
|
- fetchUserData();
|
|
|
+ queryParams.value.area_code = data.code; // 设置 area_code
|
|
|
+ fetchUserData(); // 调用 fetchUserData 函数更新表格数据
|
|
|
};
|
|
|
|
|
|
const handleSelectionChange = (selection) => {
|