| | |
| | | }) |
| | | viewer.value = viewInstance.value.getViewer() |
| | | if (props.showAdminBoundary) { |
| | | console.log(props.zoomToBoundary,'props.zoomToBoundary') |
| | | adminBoundarySources = await loadJaAdminBoundary(viewer.value, { |
| | | zoomTo: props.zoomToBoundary, |
| | | }) |
| | |
| | | const getMap = () => ({ viewer: viewer.value, publicCesium: viewInstance.value }) |
| | | const getViewer = () => viewer.value |
| | | const getPublicCesium = () => viewInstance.value |
| | | const flyBoundary = () => adminBoundarySources.flyBoundary() |
| | | |
| | | defineExpose({ getMap, getViewer, getPublicCesium }) |
| | | defineExpose({ getMap, getViewer, getPublicCesium,flyBoundary }) |
| | | </script> |
| | | |
| | | <style scoped lang="scss"> |
| | |
| | | viewer.dataSources.add(labelSource) |
| | | |
| | | if (config.zoomTo) { |
| | | await viewer.flyTo(boundarySource, { |
| | | flyBoundary() |
| | | } |
| | | |
| | | const flyBoundary = () => { |
| | | viewer.flyTo(boundarySource, { |
| | | duration: 0, |
| | | offset: new Cesium.HeadingPitchRange(0, Cesium.Math.toRadians(-75), 0), |
| | | }) |
| | | } |
| | | |
| | | return { boundarySource, lineSource, labelSource } |
| | | return { boundarySource, lineSource, labelSource,flyBoundary } |
| | | } |
| | | |
| | | export const removeJaAdminBoundary = (viewer, sources) => { |
| | |
| | | destroy-on-close |
| | | > |
| | | <div class="content" style="display: flex"> |
| | | <div class="processBox"> |
| | | <div class="processBox" v-if="dialogMode !== 'add'"> |
| | | <el-steps direction="vertical" :active="processList.length"> |
| | | <el-step v-for="item in processList" :title="item.flowName" :description="item.flowDesc" /> |
| | | </el-steps> |
| | |
| | | :layer-mode="4" |
| | | :boundary="false" |
| | | :zoomToBoundary="false" |
| | | @ready="mapReady" |
| | | /> |
| | | </div> |
| | | <div class="rightBox" v-if="!dialogReadonly"> |
| | |
| | | viewer = map?.viewer || null |
| | | } |
| | | |
| | | function mapReady() { |
| | | console.log(6363) |
| | | dialogMode.value === 'add' && mapRef.value.flyBoundary() |
| | | } |
| | | |
| | | defineExpose({ open }) |
| | | </script> |
| | | |
| | |
| | | return rules |
| | | } |
| | | |
| | | |
| | | export function getDictLabel(value, dictList = []) { |
| | | return dictList.filter(item => String(value).includes(String(item.dictKey))).map(item => item.dictValue).join(',') |
| | | if (value === null || value === undefined || value === '') return ''; |
| | | const values = String(value).split(','); |
| | | return dictList |
| | | .filter(item => values.includes(String(item.dictKey))) |
| | | .map(item => item.dictValue) |
| | | .join(','); |
| | | } |
| | | |
| | | export function blobDownload(res) { |