From a25022acac865b759742f6f0529a83b8186c3444 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Tue, 14 Jun 2022 10:08:59 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-1915=20fix=EF=BC=9AAsset=20model=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E9=A1=B5=E9=9D=A2=E4=B8=8D=E6=94=AF=E6=8C=81=E9=80=89?= =?UTF-8?q?=E6=8B=A9=20=E6=89=80=E6=9C=89=20Type?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../rightBox/administration/modelBox.vue | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/nezha-fronted/src/components/common/rightBox/administration/modelBox.vue b/nezha-fronted/src/components/common/rightBox/administration/modelBox.vue index 9bb377dcb..1893f2a96 100644 --- a/nezha-fronted/src/components/common/rightBox/administration/modelBox.vue +++ b/nezha-fronted/src/components/common/rightBox/administration/modelBox.vue @@ -230,21 +230,21 @@ export default { }) }, modelTypeList () { - this.$get('asset/model', { pageSize: -1, pageNo: 1 }).then(res => { + this.$get('asset/typeConf/tree', { pageSize: -1, pageNo: 1 }).then(res => { this.typeDataList = res.data.list.map((e, i) => { return { - name: e.type.name, - id: e.type.id + name: e.name, + id: e.id } }) - for (let i = 0; i < this.typeDataList.length - 1; i++) { - for (let j = i + 1; j < this.typeDataList.length; j++) { - if (this.typeDataList[i].id == this.typeDataList[j].id) { - this.typeDataList.splice(j, 1) - j-- - } - } - } + // for (let i = 0; i < this.typeDataList.length - 1; i++) { + // for (let j = i + 1; j < this.typeDataList.length; j++) { + // if (this.typeDataList[i].id == this.typeDataList[j].id) { + // this.typeDataList.splice(j, 1) + // j-- + // } + // } + // } }) } }