Commit c17a68c8 by 袁成

fix: 分组列表类型基础数据过滤叶子节点

parent dc3023cf
...@@ -246,7 +246,8 @@ export default { ...@@ -246,7 +246,8 @@ export default {
const listRes = await this.getBaseData(postData) const listRes = await this.getBaseData(postData)
const { rows } = listRes.data const { rows } = listRes.data
// 过滤叶子节点,list接口不返回叶子节点标识,离谱 // 过滤叶子节点,list接口不返回叶子节点标识,离谱
if (this.isLeaf) { // 分组列表类型基础数据请求出来的数据不需要过滤叶子节点
if (this.isLeaf && this.structtype !== 1) {
this.baseDataList = rows.filter((item) => { this.baseDataList = rows.filter((item) => {
return this.treeDataMap[item.code] return this.treeDataMap[item.code]
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment