This commit is contained in:
yanran200730
2022-01-18 16:09:37 +08:00
parent 55b6b0c94a
commit cd8aef1c06
4 changed files with 59 additions and 2 deletions

View File

@@ -104,7 +104,6 @@ html, body {
margin: 0; margin: 0;
} }
.villageFinance-autocomplete { .villageFinance-autocomplete {
width: auto !important; width: auto !important;

View File

@@ -332,6 +332,10 @@ export default {
if (res.code == 0) { if (res.code == 0) {
this.treeObj.treeList = [...res.data]; this.treeObj.treeList = [...res.data];
this.info = { ...this.treeObj.treeList[0] }; this.info = { ...this.treeObj.treeList[0] };
this.$nextTick(() => {
this.$refs.tree.setCurrentKey(this.treeObj.treeList[0].id)
})
} }
}); });
}, },
@@ -595,6 +599,49 @@ export default {
.app-grid-block { .app-grid-block {
width: 100%; width: 100%;
height: 100%; height: 100%;
::v-deep .el-tree {
background: transparent;
.el-tree-node__expand-icon.is-leaf {
color: transparent!important;
}
.el-tree-node__content > .el-tree-node__expand-icon {
padding: 4px;
}
.el-tree-node__content {
height: 32px;
}
.el-tree__empty-text {
color: #222;
font-size: 14px;
}
.el-tree-node__children .el-tree-node__content {
height: 32px;
}
.el-tree-node__content:hover {
background: #E8EFFF;
color: #222222;
border-radius: 2px;
}
.is-current > .el-tree-node__content {
&:hover {
background: #2266FF;
color: #fff;
}
background: #2266FF;
span {
color: #fff;
}
}
}
.mt10 { .mt10 {
padding: 8px 0; padding: 8px 0;

View File

@@ -104,6 +104,10 @@ export default {
return this.instance.post(`/app/appgirdinfo/listAll`).then((res) => { return this.instance.post(`/app/appgirdinfo/listAll`).then((res) => {
if (res.code == 0) { if (res.code == 0) {
this.treeObj.treeList = res.data; this.treeObj.treeList = res.data;
this.$nextTick(() => {
this.$refs.tree.setCurrentKey(res.data[0].id)
})
} }
}) })
}, },
@@ -129,7 +133,6 @@ export default {
}, },
handleNodeClick(val) { handleNodeClick(val) {
let path = []; let path = [];
console.log(val)
this.currInfo = val this.currInfo = val
if (val?.points?.length > 0) { if (val?.points?.length > 0) {
path = val.points.map(e => [e.lng, e.lat]) path = val.points.map(e => [e.lng, e.lat])

View File

@@ -477,6 +477,14 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.add { .add {
height: 100%; height: 100%;
::v-deep .AiWechatSelecter-container {
background: red;
.el-icon-circle-close {
display: none!important;
}
}
.form-flex { .form-flex {
display: flex; display: flex;
align-items: center; align-items: center;