提交 1ab86321 authored 作者: 钟是志's avatar 钟是志

修改

上级 6e999a0c
import { giveFilePostDataInfoForTrue } from '@/webPublic/one_stop_public/Base16'; import { giveFilePostDataInfoForTrue } from '@/webPublic/one_stop_public/Base16';
import { queryOauthActionPath } from '@/webPublic/one_stop_public/utils/queryConfig'; import { queryOauthActionPath } from '@/webPublic/one_stop_public/utils/queryConfig';
import { getToken } from '@/webPublic/one_stop_public/utils/token'; import { getToken } from '@/webPublic/one_stop_public/utils/token';
export { deepCopy} from '@/webPublic/zyd_public/utils/utils'; import { deepCopy } from '@/webPublic/zyd_public/utils/utils';
const apiUrl = queryOauthActionPath(); const apiUrl = queryOauthActionPath();
...@@ -153,6 +153,7 @@ export function getColumns(columns) { ...@@ -153,6 +153,7 @@ export function getColumns(columns) {
} }
function getColumnsData(data = [], res = [], level = 1) { function getColumnsData(data = [], res = [], level = 1) {
try{
for (let item of data) { for (let item of data) {
//item.key = i; //item.key = i;
let isLast = !item.children; let isLast = !item.children;
...@@ -176,6 +177,11 @@ export function getColumns(columns) { ...@@ -176,6 +177,11 @@ export function getColumns(columns) {
} }
} }
return res; return res;
}catch (e) {
debugger;
console.table(e);
return false;
}
} }
//递归行数 //递归行数
...@@ -188,6 +194,8 @@ export function getColumns(columns) { ...@@ -188,6 +194,8 @@ export function getColumns(columns) {
columnsHeight = x; columnsHeight = x;
} }
getColumnsMaxLevel(item.children, x); getColumnsMaxLevel(item.children, x);
}else{
columnsHeight += 1;
} }
} }
return level; return level;
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论