diff --git a/ebts-ui/src/utils/hcy.js b/ebts-ui/src/utils/hcy.js index d3616f1..77f0641 100644 --- a/ebts-ui/src/utils/hcy.js +++ b/ebts-ui/src/utils/hcy.js @@ -84,14 +84,19 @@ export function addCreateDateRange(params, dateRange) { // 回显数据字典 export function selectDictLabel(datas, value) { - var actions = []; - Object.keys(datas).some((key) => { - if (datas[key].dictValue == ('' + value)) { - actions.push(datas[key].dictLabel); - return true; - } - }) - return actions.join(''); + try { + var actions = []; + Object.keys(datas).some((key) => { + if (datas[key].dictValue == ('' + value)) { + actions.push(datas[key].dictLabel); + return true; + } + }) + return actions.join(''); + }catch (e) { + console.log(e) + return null + } } // 回显数据字典 @@ -179,6 +184,7 @@ export function handleTree(data, id, parentId, children, rootId) { }); return treeData != '' ? treeData : data; } catch (e) { + console.log(e) return null; } } diff --git a/ebts-ui/src/views/sist/dire/index.vue b/ebts-ui/src/views/sist/dire/index.vue index 1110195..f2f0033 100644 --- a/ebts-ui/src/views/sist/dire/index.vue +++ b/ebts-ui/src/views/sist/dire/index.vue @@ -10,7 +10,7 @@ @keyup.enter.native="handleQuery" /> - + - - - - - 搜索 重置 @@ -93,8 +83,6 @@ - -