diff --git a/src/views/xgf/audit/components/edit.vue b/src/views/xgf/audit/components/edit.vue index 2e0317c..6e98470 100644 --- a/src/views/xgf/audit/components/edit.vue +++ b/src/views/xgf/audit/components/edit.vue @@ -172,7 +172,7 @@ { - this.employmentTypeList = data.list + const employmentTypeList = this.listTransTree(JSON.parse(data.zTreeNodes), 'id', 'pId', 'nodes') + this.employmentTypeList = this.removeEmptyChildren(employmentTypeList) }) requestFN( '/xgf/dictionaries/getLevels', @@ -929,35 +930,6 @@ export default { // 获取数据字典数据 getDictByDicId(dicId) { - /* var dicListVal = [] - return new Promise((resolve) => { - let id = '' - if (!dicId) { - id = '0' - } else { - id = dicId - } - requestFN( - '/dictionaries/getLevelsAndSCount', - { - DICTIONARIES_ID: id - } - ).then((data) => { - if (data.list.length > 0) { - dicListVal = data.list.map((e) => { - if (e.zcount == '0') { - return { value: e.DICTIONARIES_ID.toString(), numValue: e.BIANMA.toString(), label: e.NAME, id: e.DICTIONARIES_ID, leaf: true } - } else { - return { value: e.DICTIONARIES_ID.toString(), numValue: e.BIANMA.toString(), label: e.NAME, id: e.DICTIONARIES_ID, children: [], leaf: false } - } - }) - } else { - dicListVal = undefined - } - return resolve(dicListVal) - }).catch((e) => { - }) - }) */ }, // 地图相关 mapOpen() { diff --git a/src/views/xgf/insert/components/corpInfoEdit.vue b/src/views/xgf/insert/components/corpInfoEdit.vue index 38985d0..85186a1 100644 --- a/src/views/xgf/insert/components/corpInfoEdit.vue +++ b/src/views/xgf/insert/components/corpInfoEdit.vue @@ -154,9 +154,6 @@ - - -