From 07b12c3c051ac0f062cb244599319adb36256203 Mon Sep 17 00:00:00 2001 From: liujun Date: Fri, 5 Jan 2024 09:29:48 +0800 Subject: [PATCH] =?UTF-8?q?13025=20=E7=94=A8=E5=B7=A5=E5=BD=A2=E5=BC=8F?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E4=B8=8D=E6=AD=A3=E7=A1=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/xgf/audit/components/edit.vue | 36 +++---------------- .../xgf/insert/components/corpInfoEdit.vue | 3 -- 2 files changed, 4 insertions(+), 35 deletions(-) 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 @@ - - -