|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
- <div class="ghzc BoxCommonVector" v-if="title">
|
|
|
- <div class="innerContainerVector leftPaneVector" v-drag>
|
|
|
+ <div class="ghzc BoxCommonVector">
|
|
|
+ <div class="innerContainerVector leftPaneVector" v-drag v-if="title">
|
|
|
<h2 class="PangetitleVector darg-div">
|
|
|
<span class="pange_textVector">{{ title }}</span>
|
|
|
<slot name="title"></slot>
|
|
@@ -98,13 +98,10 @@
|
|
|
</template>
|
|
|
<slot name="all"></slot>
|
|
|
</div>
|
|
|
- <div
|
|
|
- class="sm-panel sm-function-module-query"
|
|
|
- v-if="store.state.vectorData.length > 0"
|
|
|
- v-drag
|
|
|
- >
|
|
|
+ <div class="sm-panel sm-function-module-query" v-if="isShallow" v-drag>
|
|
|
<div class="sm-panel-header">
|
|
|
<span>详情</span>
|
|
|
+ <i class="el-icon-close" @click="isShallow = false"></i>
|
|
|
</div>
|
|
|
<el-tabs
|
|
|
type="border-card"
|
|
@@ -113,7 +110,7 @@
|
|
|
stretch
|
|
|
>
|
|
|
<el-tab-pane label="基本信息" name="base">
|
|
|
- <CockpitVector></CockpitVector>
|
|
|
+ <CockpitVector :baseData="store.state.vectorData"></CockpitVector>
|
|
|
</el-tab-pane>
|
|
|
<!-- -->
|
|
|
<el-tab-pane
|
|
@@ -160,6 +157,7 @@ export default {
|
|
|
searchs: [],
|
|
|
searchform: {},
|
|
|
xzqTreeData: [],
|
|
|
+ isShallow: false,
|
|
|
activeTabs: "base",
|
|
|
};
|
|
|
},
|
|
@@ -415,6 +413,9 @@ export default {
|
|
|
{ isfly: true, sw: 5 },
|
|
|
(data) => {
|
|
|
layerSources["h_" + item.index] = data;
|
|
|
+ data.entities.values.forEach((entity) => {
|
|
|
+ entity.properties = item;
|
|
|
+ });
|
|
|
}
|
|
|
);
|
|
|
}
|
|
@@ -432,6 +433,7 @@ export default {
|
|
|
});
|
|
|
});
|
|
|
store.state.vectorData = arr;
|
|
|
+ this.isShallow = true;
|
|
|
// store.setActiveToolBar(9);
|
|
|
},
|
|
|
addpolygon(item) {
|
|
@@ -622,6 +624,7 @@ export default {
|
|
|
this.searchs = newVal.searchs;
|
|
|
this.searchform = newVal.searchform;
|
|
|
this.state = "";
|
|
|
+ this.isShallow = false;
|
|
|
if (newVal.goitem) {
|
|
|
this.draw_vector_server(newVal.mapType, newVal.goitem);
|
|
|
} else if (newVal.tableData && newVal.tableData.length > 0) {
|
|
@@ -906,5 +909,16 @@ div::-webkit-scrollbar {
|
|
|
/deep/ .el-table .warning-row {
|
|
|
background: rgb(102, 177, 255) !important;
|
|
|
}
|
|
|
+/deep/ .el-icon-close:before {
|
|
|
+ position: absolute;
|
|
|
+ top: 10px;
|
|
|
+ right: 10px;
|
|
|
+ font-size: larger;
|
|
|
+ font-weight: bold;
|
|
|
+
|
|
|
+ &:hover {
|
|
|
+ color: aqua;
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|
|
|
|