diff --git a/src/utils/dict.js b/src/utils/dict.js index b3a89d6..20261c9 100644 --- a/src/utils/dict.js +++ b/src/utils/dict.js @@ -15,7 +15,7 @@ export function isLocalDict(dictCode) { D_GS_SSYJ: true, // "岗哨系统四色预警" D_BZ_SF: true, // "是否" BD_BK_CLYJBQ: true, // "车辆预警标签" - D_YJXX_CZCSLX:true, //常控处置措施类型 + D_YJXX_CZCSLX: true, //常控处置措施类型 } return localDicObj[dictCode] } @@ -32,12 +32,14 @@ export function getDict(...args) { getSysDictByCode({ dictCode: d }).then(result => { + result = result || {} + result.itemList = Array.isArray(result.itemList) ? result.itemList : [] result.itemList.forEach(p => { p.label = p.zdmc p.value = p.dm p.id = p.dm p.elTagType = p.dictType - if (p.itemList && p.itemList.length > 0) { + if (p?.itemList && p.itemList?.length > 0) { getChildren(p) } p.children = p.itemList diff --git a/src/utils/tools.js b/src/utils/tools.js index 43a91bb..943c4eb 100644 --- a/src/utils/tools.js +++ b/src/utils/tools.js @@ -379,5 +379,5 @@ export const bqYs = (val) => { */ export function holographicProfileJump(szhm) { if (!szhm) return - window.open(`https://tyyy.lz.dsj.xz/profile/people/person-manage?szhm=${szhm}&from=portal`) + window.open(`https://tyyy.lz.dsj.xz/profile/people/person-manage?sfzhm=${szhm}&from=portal`) } diff --git a/src/views/backOfficeSystem/fourColorManage/warningControl/behaviorWarning/index.vue b/src/views/backOfficeSystem/fourColorManage/warningControl/behaviorWarning/index.vue index 36d281c..160e31d 100644 --- a/src/views/backOfficeSystem/fourColorManage/warningControl/behaviorWarning/index.vue +++ b/src/views/backOfficeSystem/fourColorManage/warningControl/behaviorWarning/index.vue @@ -5,19 +5,19 @@ - + - 搜索 - 关闭搜索 + 搜索 + 关闭搜索 -
+
-
+