Merge remote-tracking branch 'yx/250605-added-yzt'

This commit is contained in:
joshen
2025-06-18 10:44:19 +08:00

View File

@@ -6,6 +6,7 @@
<a-cascader
change-on-select
:options="option"
@change="orgChange"
v-model:value="orgId"
style="width:145px;height:36px;border-radius:4px"
placeholder="请选择归属组织"
@@ -281,6 +282,17 @@ export default {
}
};
let orgArray = [];
const orgChange = (value) => {
//匹配value
let arr = orgArray.filter(org => value.includes(org.organizationId))
//arr使用/拼接
let orgPath = arr.map(org => org.orgName).join('/')
if (orgPath) {
state.orgPath = "/" + orgPath;
}
};
function flattenOrgTree(orgTree) {
const result = [];
@@ -686,7 +698,8 @@ export default {
columns,
changePagination,
openModal,
handleTableChange
handleTableChange,
orgChange,
};
},
};