| | |
| | | <div class="table-content"> |
| | | <div class="tabname">图斑列表</div> |
| | | <el-table |
| | | |
| | | ref="polygonTableEle" |
| | | highlight-current-row |
| | | :row-class-name="tableRowClassName" |
| | |
| | | > |
| | | <el-table-column type="index" align="center" width="30" label="序号"> |
| | | <template #default="{ $index }"> |
| | | {{ ($index + 1).toString().padStart(2, '0') }} |
| | | {{ |
| | | ($index + 1 + (params.page - 1) * params.pageSize).toString().padStart(2, '0') |
| | | }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="dkbh" align="center" label="图斑名称" show-overflow-tooltip/> |
| | | <el-table-column prop="dkbh" align="center" label="图斑名称" show-overflow-tooltip /> |
| | | <el-table-column prop="is_exception" align="center" label="图斑状态"> |
| | | <template #default="scope"> |
| | | <span>{{ scope.row.is_exception === 2 ? '异常' : '正常' }}</span> |
| | |
| | | if (newOptions) { |
| | | spotTypeOptions.value = newOptions.map(opt => ({ |
| | | label: opt.label, |
| | | value: String(opt.value), |
| | | value: opt.value, |
| | | })); |
| | | } |
| | | }, |
| | |
| | | const requestParams = { |
| | | patchesInfoId: props.detailid, |
| | | page: params.value.page, |
| | | pageSize: params.value.pageSize |
| | | pageSize: params.value.pageSize, |
| | | }; |
| | | |
| | | tableMapListApi(requestParams).then(res => { |
| | | tableData.value = res.data.data.map(item => ({ |
| | | tableData.value = res.data.data.records?.map(item => ({ |
| | | ...item, |
| | | dkfw: item.sdfw && item.is_exception == 1 ? item.sdfw : item.dkfw, |
| | | })); |
| | | total.value = res.data.total || res.data.data.length; |
| | | |
| | | total.value = res.data.data.total || res.data.data.length; |
| | | tbJwdList = []; |
| | | viewer?.entities.removeAll(); |
| | | entitiesAddSpot(); |
| | | }); |
| | | }; |
| | | |
| | | const handleSizeChange = (val) => { |
| | | const handleSizeChange = val => { |
| | | params.value.pageSize = val; |
| | | params.value.page = 1; // 重置到第一页 |
| | | params.value.page = 1; |
| | | getTableList(); |
| | | }; |
| | | const handleCurrentChange = (val) => { |
| | | const handleCurrentChange = val => { |
| | | params.value.page = val; |
| | | getTableList(); |
| | | }; |
| | |
| | | |
| | | if (tbJwdList.length > 0) { |
| | | const positions = tbJwdList.flatMap(item => Cesium.Cartesian3.fromDegreesArray(item.grouped)); |
| | | homeViewer.value?.camera.flyToBoundingSphere(new Cesium.BoundingSphere.fromPoints(positions)); |
| | | const boundingSphere = Cesium.BoundingSphere.fromPoints(positions); |
| | | homeViewer.value?.camera.flyToBoundingSphere(boundingSphere, { |
| | | duration: 0, |
| | | }); |
| | | } |
| | | viewInstance.value?.removeLeftClickEvent('spotHighlighting'); |
| | | viewInstance.value?.addLeftClickEvent(null, spotHighlighting, 'spotHighlighting'); |
| | |
| | | |
| | | lastentity.polygon.material = originalColor; |
| | | lastentity.polygon.outlineColor = originalOutline; |
| | | lastentity.polygon.outlineWidth = 2; // 恢复默认边框宽度 |
| | | lastentity.polygon.outlineWidth = 2; |
| | | } |
| | | } |
| | | |
| | |
| | | destination: Cesium.Cartesian3.fromDegrees( |
| | | Number(polygonCenter.lng), |
| | | Number(polygonCenter.lat), |
| | | 2000 |
| | | 1500 |
| | | ), |
| | | zIndex: 100, |
| | | }); |
| | |
| | | const patchTypeItem = infoList.value.find(item => item.name === '图斑类型'); |
| | | const updateParams = { |
| | | file_name: fileNameItem?.value || '', |
| | | lot_type_id: patchTypeItem?.originalValue || patchTypeItem?.value || '', |
| | | type: patchTypeItem?.originalValue || patchTypeItem?.value || '', |
| | | lot_type_id: patchTypeItem?.value || '', |
| | | type: patchTypeItem?.value || '', |
| | | id: props.detailList.id, |
| | | }; |
| | | patchEditApi(updateParams).then(res => { |
| | |
| | | destroyMap(); |
| | | }); |
| | | </script> |
| | | <style lang="scss"> |
| | | .spotDialog { |
| | | .el-dialog.is-align-center .el-dialog__header .el-dialog__title { |
| | | padding-left: 16px !important; |
| | | } |
| | | } |
| | | </style> |
| | | |
| | | <style scoped lang="scss"> |
| | | // :deep(.el-dialog.is-align-center) { |
| | | // :deep(.el-dialog__header) { |
| | | // .el-dialog__title { |
| | | // padding-left: 14px !important; |
| | | // } |
| | | // } |
| | | // } |
| | | :global(.spotDialog .el-dialog__header span) { |
| | | padding-left: 16px !important; |
| | | display: inline-block; |
| | | |
| | | } |
| | | :global(.spotDialog .el-dialog__header) .el-dialog__title { |
| | | font-family: "Source Han Sans CN" !important; |
| | | font-weight: bold !important; |
| | | font-size: 16px !important; |
| | | color: #363636 !important; |
| | | } |
| | | .container { |
| | | display: flex; |
| | | flex-direction: column; |
| | |
| | | display: grid; |
| | | grid-template-columns: repeat(2, 1fr); |
| | | row-gap: 0; |
| | | padding: 0; // 移除内边距,让边框贴合 |
| | | padding: 0; |
| | | font-size: 14px; |
| | | } |
| | | |
| | |
| | | height: 33px; |
| | | padding: 0 10px; |
| | | border-right: 1px solid #e8e8e8; |
| | | border-bottom: none; // 由.itemCon控制底部边框 |
| | | border-bottom: none; |
| | | |
| | | .itemTitle { |
| | | width: 202px; |
| | |
| | | height: 100%; |
| | | line-height: 33px; |
| | | padding-right: 10px; |
| | | margin: 0 -10px 0 -10px; // 拉伸背景色 |
| | | margin: 0 -10px 0 -10px; |
| | | } |
| | | |
| | | .itemContent { |