| | |
| | | <div class="rightBox"> |
| | | <div class="rightTitle"> |
| | | <span>管道</span> |
| | | <el-link :underline="false" class="boxClose" |
| | | <el-link @click="closeMenuBox" :underline="false" class="boxClose" |
| | | ><i class="el-icon-close"></i> |
| | | </el-link> |
| | | </div> |
| | | <el-table :data="tableData" height="220"> |
| | | <el-table-column align="center" type="index" label="序号" width="50" /> |
| | | <el-table-column label="定位" width="100" align="center"> |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | icon="el-icon-map-location" |
| | | size="mini" |
| | | @click="spaceLocation(scope.$index, scope.row)" |
| | | ></el-button> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | v-for="(item, index) in attributeData" |
| | | :key="index" |
| | | :label="item.alias" |
| | | :prop="item.field" |
| | | show-overflow-tooltip |
| | | align="center" |
| | | ></el-table-column> |
| | | </el-table> |
| | | <div class="rightPage"> |
| | | <!-- <el-pagination |
| | | <div class="tableBox"> |
| | | <el-table :data="tableData" style="height: 100%; width: 100%"> |
| | | <el-table-column |
| | | align="center" |
| | | type="index" |
| | | label="序号" |
| | | width="50" |
| | | /> |
| | | <el-table-column label="定位" width="100" align="center"> |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | icon="el-icon-map-location" |
| | | size="mini" |
| | | @click="spaceLocation(scope.$index, scope.row)" |
| | | ></el-button> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | v-for="(item, index) in attributeData" |
| | | :key="index" |
| | | :label="item.alias" |
| | | :prop="item.field" |
| | | show-overflow-tooltip |
| | | align="center" |
| | | ></el-table-column> |
| | | </el-table> |
| | | </div> |
| | | <!-- <div class="rightPage"> --> |
| | | <!-- <el-pagination |
| | | @size-change="handleSizeChange" |
| | | @current-change="handleCurrentChange" |
| | | :current-page="listPage.pageIndex" |
| | |
| | | :total="listPage.pageCount" |
| | | > |
| | | </el-pagination> --> |
| | | </div> |
| | | <!-- </div> --> |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | } |
| | | this.tableData = data.result; |
| | | }, |
| | | closeMenuBox() { |
| | | if (this.imagePoint != null) { |
| | | sgworld.Creator.DeleteObject(this.imagePoint); |
| | | this.imagePoint = null; |
| | | } |
| | | sgworld.Creator.SimpleGraphic.clear(); |
| | | this.$store.state.mapPopBoolean = false; |
| | | this.$store.state.mapPopBoxFlag = null; |
| | | }, |
| | | }, |
| | | created() { |
| | | this.setTableAll(); |
| | |
| | | color: white; |
| | | width: 100%; |
| | | } |
| | | .tableBox { |
| | | height: 327px; |
| | | } |
| | | .rightPage { |
| | | position: absolute; |
| | | bottom: 10px; |
| | |
| | | color: white; |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | | <style lang="less"> |
| | | /deep/ .el-table, |
| | | .el-table__expanded-cell { |
| | | background-color: transparent !important; |
| | | } |
| | | /deep/ .el-table { |
| | | background-color: transparent; |
| | | |
| | | /* 表格内背景颜色 */ |
| | | /deep/ .el-table th, |
| | | .el-table tr, |
| | | .el-table td { |
| | | background-color: transparent !important; |
| | | color: white; |
| | | } |
| | | /*最外层透明*/ |
| | | /deep/ .el-table, |
| | | /deep/ .el-table__expanded-cell { |
| | | background-color: transparent; |
| | | } |
| | | /* 表格内背景颜色 */ |
| | | /deep/ .el-table th, |
| | | /deep/ .el-table tr, |
| | | /deep/ .el-table td { |
| | | background-color: transparent; |
| | | th, |
| | | td { |
| | | background-color: transparent; |
| | | } |
| | | .el-table__expanded-cell { |
| | | background-color: transparent !important; |
| | | } |
| | | |
| | | // 表头背景色 |
| | | th.el-table__cell { |
| | | background-color: #303030; |
| | | color: #fff; |
| | | } |
| | | tr > td { |
| | | background-color: #303030; |
| | | color: #fff; |
| | | } |
| | | |
| | | // hover效果 |
| | | tr:hover > td { |
| | | background-color: rgba(255, 255, 255, 0.3) !important; |
| | | } |
| | | |
| | | tbody tr:hover { |
| | | background-color: rgba(255, 255, 255, 0.3) !important; |
| | | // text-align: center; |
| | | } |
| | | |
| | | // 滚动条宽高 |
| | | .el-table__body-wrapper::-webkit-scrollbar { |
| | | width: 5px; |
| | | height: 5px; |
| | | } |
| | | |
| | | .el-table__body-wrapper::-webkit-scrollbar { |
| | | width: 5px; |
| | | /*滚动条宽度*/ |
| | | height: 5px; |
| | | /*滚动条高度*/ |
| | | } |
| | | /*定义滚动条轨道 内阴影+圆角*/ |
| | | .el-table__body-wrapper::-webkit-scrollbar-track { |
| | | box-shadow: 0px 1px 3px #216fe6 inset; |
| | | /*滚动条的背景区域的内阴影*/ |
| | | border-radius: 10px; |
| | | } |
| | | |
| | | /*定义滑块 内阴影+圆角*/ |
| | | .el-table__body-wrapper::-webkit-scrollbar-thumb { |
| | | box-shadow: 0px 1px 3px #216fe6 inset; |
| | | border-radius: 6px; |
| | | background-color: #216fe6; |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | | <style lang="less"></style> |
| | | <style scoped lang="less"></style> |