From ca78a540905843a791a0d13d0ed28cbf63991b56 Mon Sep 17 00:00:00 2001 From: TimSpan Date: Thu, 8 Aug 2024 17:20:41 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E9=A6=96=E9=A1=B5=20indexmin?= =?UTF-8?q?=20=E9=A1=B5=E9=9D=A2ts=E7=88=86=E7=BA=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 解决首页 indexmin 页面ts爆红 --- src/views/page/index.vue | 5 +- src/views/page/indexMim.vue | 2140 ++++++++++++++++++----------------- 2 files changed, 1082 insertions(+), 1063 deletions(-) diff --git a/src/views/page/index.vue b/src/views/page/index.vue index 525e0c30..ec109cd8 100644 --- a/src/views/page/index.vue +++ b/src/views/page/index.vue @@ -673,7 +673,7 @@ const gettree4 = (data: any) => { name: localStorage.getItem('loginname'), industry: data, }) - .then((res) => { + .then((res: JsonResult) => { if (res.code == 0) { api .post('/multialarm/client/alarm_point/getlist', { @@ -686,7 +686,8 @@ const gettree4 = (data: any) => { }) let data = [res.data] data.forEach((tree) => { - console.log(tree) + console.log('tree______', tree) + tree.children.reverse() // 长沙市排在前 printLeafs(tree, res1.data) }) treedataall.value = [...data] diff --git a/src/views/page/indexMim.vue b/src/views/page/indexMim.vue index 5fe2ffda..5ee05319 100644 --- a/src/views/page/indexMim.vue +++ b/src/views/page/indexMim.vue @@ -1,1121 +1,1139 @@ \ No newline at end of file + .cen { + width: calc(100% - 900px); + height: 98%; + margin-top: 0.5%; + margin-left: 0.5%; + margin-right: 0.5%; + border: 1px solid #3876B9; + background-image: url(./indeximag/able.jpg); + background-size: 100% 100%; + } +} +