mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-07 18:06:46 +08:00
Merge remote-tracking branch 'yx/250605-added-yzt'
This commit is contained in:
@@ -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,
|
||||
};
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user