mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-09 02:46:45 +08:00
Merge remote-tracking branch 'yx/250605-added-yzt'
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
<a-cascader
|
<a-cascader
|
||||||
change-on-select
|
change-on-select
|
||||||
:options="option"
|
:options="option"
|
||||||
|
@change="orgChange"
|
||||||
v-model:value="orgId"
|
v-model:value="orgId"
|
||||||
style="width:145px;height:36px;border-radius:4px"
|
style="width:145px;height:36px;border-radius:4px"
|
||||||
placeholder="请选择归属组织"
|
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) {
|
function flattenOrgTree(orgTree) {
|
||||||
const result = [];
|
const result = [];
|
||||||
|
|
||||||
@@ -686,7 +698,8 @@ export default {
|
|||||||
columns,
|
columns,
|
||||||
changePagination,
|
changePagination,
|
||||||
openModal,
|
openModal,
|
||||||
handleTableChange
|
handleTableChange,
|
||||||
|
orgChange,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user