diff --git a/project/sass/apps/grid/AppGridBlock/components/add.vue b/project/sass/apps/grid/AppGridBlock/components/add.vue index 6edd2760..0f56b13d 100644 --- a/project/sass/apps/grid/AppGridBlock/components/add.vue +++ b/project/sass/apps/grid/AppGridBlock/components/add.vue @@ -50,7 +50,9 @@ - 地图标绘 + + 地图标绘 + @@ -65,9 +67,6 @@ - - - @@ -89,9 +88,7 @@ export default { girdMemberManageList: [], girdMemberList: [] }, - showMap: false, options: [], - path: [], parentGirdInfo: {}, }; }, @@ -160,10 +157,6 @@ export default { } }); }, - surePotting() { - this.forms.points = JSON.parse(JSON.stringify(this.path)); - this.showMap = false; - }, save() { this.$refs["rules"].validate((valid) => { if (valid) { @@ -222,10 +215,6 @@ export default { } }); }, - handlePlotting() { - if (this.forms.points?.length > 0) this.path = JSON.parse(JSON.stringify(this.forms.points)) - this.showMap = true - } }, }; @@ -235,37 +224,6 @@ export default { width: 100%; height: 100%; - ::v-deep .amap-copyright { - display: none !important; - } - - ::v-deep .amap-logo { - display: none !important; - } - - ::v-deep.fullscreenMap { - .el-dialog { - display: flex; - flex-direction: column; - - .el-dialog__body { - padding: 0; - flex: 1; - min-height: 0; - - .ai-dialog__content { - max-height: unset !important; - padding-bottom: 0; - height: 100%; - - .ai-dialog__content--wrapper { - padding-right: 0 !important; - } - } - } - } - } - .footer-btn { width: 92px; } diff --git a/project/sass/apps/grid/AppGridBlock/components/list.vue b/project/sass/apps/grid/AppGridBlock/components/list.vue index f34c728a..b3b9b1ae 100644 --- a/project/sass/apps/grid/AppGridBlock/components/list.vue +++ b/project/sass/apps/grid/AppGridBlock/components/list.vue @@ -7,14 +7,14 @@ $refs.tree.filter(v)"> + :data="treeObj.treeList" + :props="treeObj.defaultProps" + @node-click="handleNodeClick" + node-key="id" + ref="tree" + :filter-node-method="filterNode" + default-expand-all + highlight-current> @@ -120,7 +120,7 @@ 编辑 - 标绘 + confirm(row,v)"/> 删除 @@ -128,20 +128,6 @@ - - - - 0) this.path = JSON.parse(JSON.stringify(this.editRow.points)) - this.editRow = {...row}; - }, showEdit(id) { this.$router.push({hash: "#add", query: {id}}) }, //map搜索 - confirm() { - this.editRow.points = JSON.parse(JSON.stringify(this.path)); - let {girdMemberNames} = this.editRow - this.instance.post(`/app/appgirdinfo/addOrUpdate`, { - ...this.editRow, - girdMemberNames: girdMemberNames?.toString() - }).then((res) => { + confirm(row, points) { + this.instance.post(`/app/appgirdinfo/addOrUpdate`, {...row, points}).then((res) => { if (res.code == 0) { + this.$message.success("提交成功!") this.getList(); - this.showMap = false; } }); }, @@ -425,7 +401,8 @@ export default { } .is-current > .el-tree-node__content { - color: #fff!important; + color: #fff !important; + &:hover { background: #2266FF; color: #fff; @@ -480,6 +457,7 @@ export default { } } } + ::v-deep .treePanel { display: flex; flex-direction: column; diff --git a/project/sass/apps/grid/AppGridBlock/components/mapPlotting.vue b/project/sass/apps/grid/AppGridBlock/components/mapPlotting.vue index 4e26acaa..2b7e57fb 100644 --- a/project/sass/apps/grid/AppGridBlock/components/mapPlotting.vue +++ b/project/sass/apps/grid/AppGridBlock/components/mapPlotting.vue @@ -1,34 +1,49 @@ - - - - - - - - 1.双击覆盖物即可编辑 - 2.编辑状态,对点双击可删除该点 - 3.绘制状态,右键结束绘制 - 4.结束编辑才能保存绘制的覆盖物信息 - - - 新建 - 结束编辑 - 清除绘制 - + + + 标绘 + + + + + + + + + + 1.双击覆盖物即可编辑 + 2.编辑状态,对点双击可删除该点 + 3.绘制状态,右键结束绘制 + 4.结束编辑才能保存绘制的覆盖物信息 + + + 新建 + 结束编辑 + 清除绘制 + + + +