diff --git a/project/oms/apps/sentry/AppApiMonitor/AppApiMonitor.vue b/project/oms/apps/sentry/AppApiMonitor/AppApiMonitor.vue new file mode 100644 index 00000000..f5489ce1 --- /dev/null +++ b/project/oms/apps/sentry/AppApiMonitor/AppApiMonitor.vue @@ -0,0 +1,49 @@ + + + + + diff --git a/project/qianxinan/AppAccountQxn/AppAccountQxn.vue b/project/qianxinan/AppAccountQxn/AppAccountQxn.vue new file mode 100644 index 00000000..dd8c6bdb --- /dev/null +++ b/project/qianxinan/AppAccountQxn/AppAccountQxn.vue @@ -0,0 +1,281 @@ + + + + + diff --git a/ui/lib/js/utils.js b/ui/lib/js/utils.js index 173cb5cb..800cb061 100644 --- a/ui/lib/js/utils.js +++ b/ui/lib/js/utils.js @@ -40,12 +40,12 @@ const addChild = (parent, pending, config) => { * @param config 配置 */ const $arr2tree = (list, config = {}) => { - const {key = 'id', parent = 'parentId', children = 'children'} = config, result = [], itemMap = {}, ids = list?.map(e => `${e[key]}`)?.toString() + const {key = 'id', parent = 'parentId', children = 'children'} = config, result = [], itemMap = {}, ids = list?.map(e => `#${e[key]}#`)?.toString() for (const e of list) { const id = e[key], pid = e[parent] itemMap[id] = {...e, [children]: [itemMap[id]?.[children]].flat().filter(Boolean)} const treeItem = itemMap[id] - if (!!pid && ids.indexOf(pid) > -1) { + if (!!pid && ids.indexOf(`#${pid}#`) > -1) { if (!itemMap[pid]) { itemMap[pid] = { children: []