From eee38183325970088ad3261f632e30a70814a30f Mon Sep 17 00:00:00 2001 From: aixianling Date: Fri, 24 Feb 2023 16:54:17 +0800 Subject: [PATCH 1/3] =?UTF-8?q?Dialog=E5=8D=87=E7=BA=A7,=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E5=8F=AF=E6=8B=96=E5=8A=A8,=E6=94=AF=E6=8C=81v-model=E6=8E=A7?= =?UTF-8?q?=E5=88=B6=E6=98=BE=E9=9A=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/packages/basic/AiDialog.vue | 161 ++++++++++++++++----------------- 1 file changed, 78 insertions(+), 83 deletions(-) diff --git a/ui/packages/basic/AiDialog.vue b/ui/packages/basic/AiDialog.vue index 3924578e..e5dc6b46 100644 --- a/ui/packages/basic/AiDialog.vue +++ b/ui/packages/basic/AiDialog.vue @@ -1,112 +1,103 @@ From 8539bd5d757777fdf2d1733a351726462ffbcf4b Mon Sep 17 00:00:00 2001 From: aixianling Date: Fri, 24 Feb 2023 17:06:29 +0800 Subject: [PATCH 2/3] =?UTF-8?q?Dialog=E5=8D=87=E7=BA=A7,=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E5=8F=AF=E6=8B=96=E5=8A=A8,=E6=94=AF=E6=8C=81v-model=E6=8E=A7?= =?UTF-8?q?=E5=88=B6=E6=98=BE=E9=9A=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/packages/basic/AiDialog.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/ui/packages/basic/AiDialog.vue b/ui/packages/basic/AiDialog.vue index e5dc6b46..7653c1fa 100644 --- a/ui/packages/basic/AiDialog.vue +++ b/ui/packages/basic/AiDialog.vue @@ -59,7 +59,6 @@ export default { const sty = dragDom.currentStyle || window.getComputedStyle(dragDom, null) dialogHeaderEl.onmousedown = e => { - console.log(e) // 鼠标按下,获得鼠标在盒子内的坐标(鼠标在页面的坐标 减去 对话框的坐标),计算当前元素距离可视区的距离 const disX = e.clientX - dialogHeaderEl.offsetLeft const disY = e.clientY - dialogHeaderEl.offsetTop From bf784f05ea94c64add0f7093a587f43038b05d59 Mon Sep 17 00:00:00 2001 From: aixianling Date: Tue, 28 Feb 2023 10:12:01 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E6=B6=88=E9=99=A4=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/grid/AppGridMap/components/list.vue | 22 ++------------------ 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/packages/grid/AppGridMap/components/list.vue b/packages/grid/AppGridMap/components/list.vue index df6ea79d..c70d9050 100644 --- a/packages/grid/AppGridMap/components/list.vue +++ b/packages/grid/AppGridMap/components/list.vue @@ -103,24 +103,7 @@ export default { getTreeList() { this.instance.post(`/app/appgirdinfo/listAll3`).then((res) => { if (res?.data) { - this.$nextTick(() => { - this.$refs.tree.setCurrentKey(res.data.id) - }) - - this.treeObj.treeList = res.data.filter(e => !e.parentGirdId) - const parentGirdId = this.treeObj.treeList[0].id - - this.treeObj.treeList.map(p => this.addChild(p, res.data.map(v => { - if (v.id === parentGirdId) { - this.treeObj.defaultExpandedKeys.push(v.id) - } - - return { - ...v - } - }), { - parent: 'parentGirdId' - })) + this.treeObj.treeList = this.$arr2tree(res.data,{parent:"parentGirdId"}) this.getLeafNodes() } }); @@ -128,7 +111,7 @@ export default { onMapInit() { this.instance.post("/app/appdvcpconfig/getCorpLocation").then(res => { - if (res.code === 0) { + if (res?.data) { this.map.setCenter(new this.mapLib.LatLng(res.data.lat, res.data.lng)) } }) @@ -144,7 +127,6 @@ export default { points: v.points ? v.points.map(p => [p.lng, p.lat]) : [] } }).filter(v => v.points.length) - this.renderGridMap(arr) } })