| | |
| | | "dependencies": { |
| | | "@amap/amap-jsapi-loader": "^1.0.1", |
| | | "@element-plus/icons-vue": "^2.3.1", |
| | | "@fortawesome/fontawesome-svg-core": "^6.5.2", |
| | | "@fortawesome/free-brands-svg-icons": "^6.5.2", |
| | | "@fortawesome/free-regular-svg-icons": "^6.5.2", |
| | | "@fortawesome/free-solid-svg-icons": "^6.5.2", |
| | | "@fortawesome/vue-fontawesome": "^3.0.6", |
| | | "@vueuse/core": "^10.9.0", |
| | | "axios": "^1.6.8", |
| | | "element-plus": "^2.6.2", |
| | |
| | | "version": "0.2.1", |
| | | "resolved": "https://registry.npmmirror.com/@floating-ui/utils/-/utils-0.2.1.tgz", |
| | | "integrity": "sha512-9TANp6GPoMtYzQdt54kfAyMmz1+osLlXdg2ENroU7zzrtflTLrrC/lgrIfaSe+Wu0b89GKccT7vxXA0MoAIO+Q==" |
| | | }, |
| | | "node_modules/@fortawesome/fontawesome-common-types": { |
| | | "version": "6.5.2", |
| | | "resolved": "https://registry.npmmirror.com/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-6.5.2.tgz", |
| | | "integrity": "sha512-gBxPg3aVO6J0kpfHNILc+NMhXnqHumFxOmjYCFfOiLZfwhnnfhtsdA2hfJlDnj+8PjAs6kKQPenOTKj3Rf7zHw==", |
| | | "hasInstallScript": true, |
| | | "engines": { |
| | | "node": ">=6" |
| | | } |
| | | }, |
| | | "node_modules/@fortawesome/fontawesome-svg-core": { |
| | | "version": "6.5.2", |
| | | "resolved": "https://registry.npmmirror.com/@fortawesome/fontawesome-svg-core/-/fontawesome-svg-core-6.5.2.tgz", |
| | | "integrity": "sha512-5CdaCBGl8Rh9ohNdxeeTMxIj8oc3KNBgIeLMvJosBMdslK/UnEB8rzyDRrbKdL1kDweqBPo4GT9wvnakHWucZw==", |
| | | "hasInstallScript": true, |
| | | "dependencies": { |
| | | "@fortawesome/fontawesome-common-types": "6.5.2" |
| | | }, |
| | | "engines": { |
| | | "node": ">=6" |
| | | } |
| | | }, |
| | | "node_modules/@fortawesome/free-brands-svg-icons": { |
| | | "version": "6.5.2", |
| | | "resolved": "https://registry.npmmirror.com/@fortawesome/free-brands-svg-icons/-/free-brands-svg-icons-6.5.2.tgz", |
| | | "integrity": "sha512-zi5FNYdmKLnEc0jc0uuHH17kz/hfYTg4Uei0wMGzcoCL/4d3WM3u1VMc0iGGa31HuhV5i7ZK8ZlTCQrHqRHSGQ==", |
| | | "hasInstallScript": true, |
| | | "dependencies": { |
| | | "@fortawesome/fontawesome-common-types": "6.5.2" |
| | | }, |
| | | "engines": { |
| | | "node": ">=6" |
| | | } |
| | | }, |
| | | "node_modules/@fortawesome/free-regular-svg-icons": { |
| | | "version": "6.5.2", |
| | | "resolved": "https://registry.npmmirror.com/@fortawesome/free-regular-svg-icons/-/free-regular-svg-icons-6.5.2.tgz", |
| | | "integrity": "sha512-iabw/f5f8Uy2nTRtJ13XZTS1O5+t+anvlamJ3zJGLEVE2pKsAWhPv2lq01uQlfgCX7VaveT3EVs515cCN9jRbw==", |
| | | "hasInstallScript": true, |
| | | "dependencies": { |
| | | "@fortawesome/fontawesome-common-types": "6.5.2" |
| | | }, |
| | | "engines": { |
| | | "node": ">=6" |
| | | } |
| | | }, |
| | | "node_modules/@fortawesome/free-solid-svg-icons": { |
| | | "version": "6.5.2", |
| | | "resolved": "https://registry.npmmirror.com/@fortawesome/free-solid-svg-icons/-/free-solid-svg-icons-6.5.2.tgz", |
| | | "integrity": "sha512-QWFZYXFE7O1Gr1dTIp+D6UcFUF0qElOnZptpi7PBUMylJh+vFmIedVe1Ir6RM1t2tEQLLSV1k7bR4o92M+uqlw==", |
| | | "hasInstallScript": true, |
| | | "dependencies": { |
| | | "@fortawesome/fontawesome-common-types": "6.5.2" |
| | | }, |
| | | "engines": { |
| | | "node": ">=6" |
| | | } |
| | | }, |
| | | "node_modules/@fortawesome/vue-fontawesome": { |
| | | "version": "3.0.6", |
| | | "resolved": "https://registry.npmmirror.com/@fortawesome/vue-fontawesome/-/vue-fontawesome-3.0.6.tgz", |
| | | "integrity": "sha512-akrL7lTroyNpPkoHtvK2UpsMzJr6jXdHaQ0YdcwqDsB8jdwlpNHZYijpOUd9KJsARr+VB3WXY4EyObepqJ4ytQ==", |
| | | "peerDependencies": { |
| | | "@fortawesome/fontawesome-svg-core": "~1 || ~6", |
| | | "vue": ">= 3.0.0 < 4" |
| | | } |
| | | }, |
| | | "node_modules/@humanwhocodes/config-array": { |
| | | "version": "0.11.14", |
| | |
| | | "resolved": "https://registry.npmmirror.com/@floating-ui/utils/-/utils-0.2.1.tgz", |
| | | "integrity": "sha512-9TANp6GPoMtYzQdt54kfAyMmz1+osLlXdg2ENroU7zzrtflTLrrC/lgrIfaSe+Wu0b89GKccT7vxXA0MoAIO+Q==" |
| | | }, |
| | | "@fortawesome/fontawesome-common-types": { |
| | | "version": "6.5.2", |
| | | "resolved": "https://registry.npmmirror.com/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-6.5.2.tgz", |
| | | "integrity": "sha512-gBxPg3aVO6J0kpfHNILc+NMhXnqHumFxOmjYCFfOiLZfwhnnfhtsdA2hfJlDnj+8PjAs6kKQPenOTKj3Rf7zHw==" |
| | | }, |
| | | "@fortawesome/fontawesome-svg-core": { |
| | | "version": "6.5.2", |
| | | "resolved": "https://registry.npmmirror.com/@fortawesome/fontawesome-svg-core/-/fontawesome-svg-core-6.5.2.tgz", |
| | | "integrity": "sha512-5CdaCBGl8Rh9ohNdxeeTMxIj8oc3KNBgIeLMvJosBMdslK/UnEB8rzyDRrbKdL1kDweqBPo4GT9wvnakHWucZw==", |
| | | "requires": { |
| | | "@fortawesome/fontawesome-common-types": "6.5.2" |
| | | } |
| | | }, |
| | | "@fortawesome/free-brands-svg-icons": { |
| | | "version": "6.5.2", |
| | | "resolved": "https://registry.npmmirror.com/@fortawesome/free-brands-svg-icons/-/free-brands-svg-icons-6.5.2.tgz", |
| | | "integrity": "sha512-zi5FNYdmKLnEc0jc0uuHH17kz/hfYTg4Uei0wMGzcoCL/4d3WM3u1VMc0iGGa31HuhV5i7ZK8ZlTCQrHqRHSGQ==", |
| | | "requires": { |
| | | "@fortawesome/fontawesome-common-types": "6.5.2" |
| | | } |
| | | }, |
| | | "@fortawesome/free-regular-svg-icons": { |
| | | "version": "6.5.2", |
| | | "resolved": "https://registry.npmmirror.com/@fortawesome/free-regular-svg-icons/-/free-regular-svg-icons-6.5.2.tgz", |
| | | "integrity": "sha512-iabw/f5f8Uy2nTRtJ13XZTS1O5+t+anvlamJ3zJGLEVE2pKsAWhPv2lq01uQlfgCX7VaveT3EVs515cCN9jRbw==", |
| | | "requires": { |
| | | "@fortawesome/fontawesome-common-types": "6.5.2" |
| | | } |
| | | }, |
| | | "@fortawesome/free-solid-svg-icons": { |
| | | "version": "6.5.2", |
| | | "resolved": "https://registry.npmmirror.com/@fortawesome/free-solid-svg-icons/-/free-solid-svg-icons-6.5.2.tgz", |
| | | "integrity": "sha512-QWFZYXFE7O1Gr1dTIp+D6UcFUF0qElOnZptpi7PBUMylJh+vFmIedVe1Ir6RM1t2tEQLLSV1k7bR4o92M+uqlw==", |
| | | "requires": { |
| | | "@fortawesome/fontawesome-common-types": "6.5.2" |
| | | } |
| | | }, |
| | | "@fortawesome/vue-fontawesome": { |
| | | "version": "3.0.6", |
| | | "resolved": "https://registry.npmmirror.com/@fortawesome/vue-fontawesome/-/vue-fontawesome-3.0.6.tgz", |
| | | "integrity": "sha512-akrL7lTroyNpPkoHtvK2UpsMzJr6jXdHaQ0YdcwqDsB8jdwlpNHZYijpOUd9KJsARr+VB3WXY4EyObepqJ4ytQ==", |
| | | "requires": {} |
| | | }, |
| | | "@humanwhocodes/config-array": { |
| | | "version": "0.11.14", |
| | | "resolved": "https://registry.npmmirror.com/@humanwhocodes/config-array/-/config-array-0.11.14.tgz", |
| | |
| | | "dependencies": { |
| | | "@amap/amap-jsapi-loader": "^1.0.1", |
| | | "@element-plus/icons-vue": "^2.3.1", |
| | | "@fortawesome/fontawesome-svg-core": "^6.5.2", |
| | | "@fortawesome/free-brands-svg-icons": "^6.5.2", |
| | | "@fortawesome/free-regular-svg-icons": "^6.5.2", |
| | | "@fortawesome/free-solid-svg-icons": "^6.5.2", |
| | | "@fortawesome/vue-fontawesome": "^3.0.6", |
| | | "@vueuse/core": "^10.9.0", |
| | | "axios": "^1.6.8", |
| | | "element-plus": "^2.6.2", |
| | |
| | | } |
| | | |
| | | .map-tool-box { |
| | | position: absolute; |
| | | position: relative; |
| | | left: 1px; |
| | | top: 10px; |
| | | z-index: 1000px; |
| | |
| | | |
| | | declare module 'vue' { |
| | | export interface GlobalComponents { |
| | | BaseCard: typeof import('./components/BaseCard.vue')['default'] |
| | | BaseMap: typeof import('./components/map/BaseMap.vue')['default'] |
| | | CoreHeader: typeof import('./components/core/CoreHeader.vue')['default'] |
| | | CoreMenu: typeof import('./components/core/CoreMenu.vue')['default'] |
| | | ElButton: typeof import('element-plus/es')['ElButton'] |
| | | ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider'] |
| | | ElDropdown: typeof import('element-plus/es')['ElDropdown'] |
| | | ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem'] |
| | | ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu'] |
| | | ElIcon: typeof import('element-plus/es')['ElIcon'] |
| | | FactorRadio: typeof import('./components/monitor/FactorRadio.vue')['default'] |
| | | MapToolbox: typeof import('./components/map/MapToolbox.vue')['default'] |
| | | RouterLink: typeof import('vue-router')['RouterLink'] |
| | | RouterView: typeof import('vue-router')['RouterView'] |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div :class="wrapClz"> |
| | | <div class="ff-border-bottom"></div> |
| | | <div class="ff-border-top"> |
| | | <div class="ff-border-content"> |
| | | <slot name="content"></slot> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | // ç»ä¸æ ·å¼å¡ç |
| | | export default { |
| | | props: { |
| | | /** |
| | | * æ ·å¼æè§å¤§å° |
| | | * small | medium |
| | | */ |
| | | size: { |
| | | type: String, |
| | | default: 'small' |
| | | }, |
| | | /** |
| | | * æ ·å¼æå |
| | | * left | right |
| | | */ |
| | | direction: { |
| | | type: String, |
| | | default: 'left' |
| | | } |
| | | }, |
| | | computed: { |
| | | wrapClz() { |
| | | let clz = 'ff-content fy-container'; |
| | | clz += ` ff-content-${this.size}`; |
| | | clz += ` ff-content-${this.direction}`; |
| | | return clz; |
| | | } |
| | | } |
| | | }; |
| | | </script> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div class="map-mode-change flexbox flex-space-between fy-container"> |
| | | <template v-for="(item, index) in menu" :key="index"> |
| | | <a :class="btnClz(item.selected)" @click="navTo(index)"> |
| | | <div>{{ item.name }}</div> |
| | | </a> |
| | | </template> |
| | | <!-- <a class="mode-btn btn-selected"> |
| | | <div>æ±¡ææº¯æº</div> |
| | | </a> |
| | | <a class="mode-btn btn-unselected margin-left-8"> |
| | | <div>èµ°èªçæµ</div> |
| | | </a> |
| | | <a class="mode-btn btn-unselected margin-left-8"> |
| | | <div>ç½æ ¼åçæµ</div> |
| | | </a> --> |
| | | <!-- <div class="flexbox-col"> |
| | | <a id="btn_more" class="btn-unselected margin-left-8"> |
| | | <div id="mode_selected">å
¶ä»æ¨¡å¼</div> |
| | | </a> |
| | | <div |
| | | id="mode_others" |
| | | class="flexbox-col" |
| | | style="display: none; position: absolute; margin-top: 40px" |
| | | > |
| | | <a id="btn_gridmonitor" class="mode-btn mode-btn-other btn-unselected margin-left-8"> |
| | | <div>ç½æ ¼åçæµ</div> |
| | | </a> |
| | | <a id="btn_electricity" class="mode-btn mode-btn-other btn-unselected margin-left-8"> |
| | | <div>ç¨çµéçæµ</div> |
| | | </a> |
| | | <a id="btn_weight" class="mode-btn mode-btn-other btn-unselected margin-left-8"> |
| | | <div>é£é©æ¨¡å</div> |
| | | </a> |
| | | </div> |
| | | </div> --> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data() { |
| | | return { |
| | | menu: [ |
| | | { |
| | | name: 'æ±¡ææº¯æº', |
| | | path: 'hmode', |
| | | selected: true |
| | | }, |
| | | { |
| | | name: 'èµ°èªçæµ', |
| | | path: 'rmode' |
| | | }, |
| | | { |
| | | name: 'ç½æ ¼åçæµ', |
| | | path: 'gridmonitor' |
| | | } |
| | | // { |
| | | // name: 'ç¨çµéçæµ', |
| | | // path: 'emode' |
| | | // }, |
| | | // { |
| | | // name: 'é£é©æ¨¡å', |
| | | // path: 'riskmode' |
| | | // }, |
| | | ] |
| | | }; |
| | | }, |
| | | computed: {}, |
| | | methods: { |
| | | btnClz(selected) { |
| | | return 'mode-btn ' + (selected ? 'btn-selected ' : 'btn-unselected ') + 'm-r-8'; |
| | | }, |
| | | navTo(index) { |
| | | const m = this.menu; |
| | | m.forEach((e) => { |
| | | e.selected = false; |
| | | }); |
| | | m[index].selected = true; |
| | | this.$router.push(m[index].path); |
| | | } |
| | | } |
| | | }; |
| | | </script> |
| | | <style scoped></style> |
| | |
| | | @command="handleCommand" |
| | | > |
| | | <el-button type="primary" class="el-button-custom"> |
| | | å°å¾å·¥å
·ç®±<el-icon class="el-icon--right"><arrow-down /></el-icon> |
| | | <el-icon class="el-icon--left"><TakeawayBox /></el-icon> |
| | | å°å¾å·¥å
·ç®± |
| | | <el-icon class="el-icon--right"><arrow-down /></el-icon> |
| | | </el-button> |
| | | <template #dropdown> |
| | | <el-dropdown-menu> |
| | | <el-dropdown-item v-for="(item, index) in toolItem" :key="index" :command="index"> |
| | | <el-button :type="item.value ? 'primary' : 'info'" plain size="default"> |
| | | <font-awesome-icon :icon="item.icon" class="m-r-4" /> |
| | | {{ item.label + ': ' + (item.value ? 'å¼' : 'å
³') }} |
| | | </el-button> |
| | | </el-dropdown-item> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import toolbox from '../../utils/map/toolbox'; |
| | | import toolbox from '@/utils/map/toolbox'; |
| | | export default { |
| | | data() { |
| | | return { |
| | | toolItem: [ |
| | | { |
| | | icon: 'fa fa-map-signs', |
| | | label: 'å°ç©æ 注', |
| | | value: false, |
| | | click: function () { |
| | |
| | | } |
| | | }, |
| | | { |
| | | icon: 'fa fa-globe', |
| | | label: '嫿å°å¾', |
| | | value: true, |
| | | click: function () { |
| | |
| | | } |
| | | }, |
| | | { |
| | | icon: 'fa fa-compass', |
| | | label: 'æ§å¶ç½ç', |
| | | value: true, |
| | | click: function () { |
| | |
| | | } |
| | | }, |
| | | { |
| | | icon: 'fa fa-compass', |
| | | label: 'åæ æ¾å', |
| | | value: false, |
| | | click: function () { |
| | | this.value = !this.value; |
| | | toolbox.toggleCoorPicking(this.value); |
| | | } |
| | | }, |
| | | { |
| | | icon: 'fa fa-compass', |
| | | label: 'æ°æ®æ è®°', |
| | | value: true, |
| | | click: function () { |
| | | this.value = !this.value; |
| | | // todo æ°æ®æ è®° |
| | | } |
| | | }, |
| | | { |
| | | icon: 'fa fa-compass', |
| | | label: 'æ°æ®å¼¹æ¡', |
| | | value: true, |
| | | click: function () { |
| | | this.value = !this.value; |
| | | // todo æ°æ®å¼¹æ¡ |
| | | } |
| | | } |
| | | ] |
| | |
| | | |
| | | <style scoped> |
| | | .dropdown-wrap { |
| | | position: absolute; |
| | | top: 10px; |
| | | left: 2px; |
| | | } |
| | | |
| | | .el-button-custom { |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <BaseCard> |
| | | <template #content> |
| | | <el-radio-group v-model="radio"> |
| | | <el-radio :value="3">Option A</el-radio> |
| | | <el-radio :value="6">Option B</el-radio> |
| | | <el-radio :value="9">Option C</el-radio> |
| | | </el-radio-group> |
| | | </template> |
| | | </BaseCard> |
| | | </template> |
| | | |
| | | <script> |
| | | // çæµå ååéæ¡ |
| | | export default {}; |
| | | </script> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | // çæµå ååéæ¡é项 |
| | |
| | | import App from './App.vue'; |
| | | import router from './router'; |
| | | |
| | | /* import the fontawesome core */ |
| | | import { library } from '@fortawesome/fontawesome-svg-core'; |
| | | /* import font awesome icon component */ |
| | | import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'; |
| | | /* import specific icons */ |
| | | // import { all } from '@awesome.me/kit-KIT_CODE/icons'; |
| | | import { fas } from '@fortawesome/free-solid-svg-icons'; |
| | | // import { faTwitter, faFontAwesome } from '@fortawesome/free-brands-svg-icons' |
| | | // import { faTwitter, faFontAwesome } from '@fortawesome/free-regular-svg-icons' |
| | | |
| | | /* add icons to the library */ |
| | | library.add(fas); |
| | | |
| | | const app = createApp(App); |
| | | |
| | | // elementUI Icon 注å |
| | |
| | | app.component(key, component); |
| | | } |
| | | |
| | | app.component('font-awesome-icon', FontAwesomeIcon); |
| | | app.use(createPinia()); |
| | | app.use(router); |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /************************************** font size **************************************/ |
| | | $fontsize: ( |
| | | s: var(--el-font-size-small), |
| | | b: var(--el-font-size-base), |
| | | m: var(--el-font-size-medium), |
| | | l: var(--el-font-size-large) |
| | | ); |
| | | |
| | | @each $dName, $dValue in $fontsize { |
| | | .f-#{$dName} { |
| | | font-size: #{$dValue}; |
| | | } |
| | | } |
| | | |
| | | /************************************** color **************************************/ |
| | | $colors: ( |
| | | p: var(--el-color-primary), |
| | | s: var(--el-color-success), |
| | | w: var(--el-color-warning), |
| | | d: var(--el-color-danger), |
| | | e: var(--el-color-error), |
| | | i: var(--el-color-info) |
| | | ); |
| | | |
| | | @each $dName, $dValue in $colors { |
| | | .color-#{$dName} { |
| | | color: #{$dValue}; |
| | | } |
| | | .b-color-#{$dName} { |
| | | background-color: #{$dValue}; |
| | | } |
| | | } |
| | | |
| | | /************************************** å
å¤è¾¹è· **************************************/ |
| | | $direction: ( |
| | | l: 'left', |
| | | t: 'top', |
| | | r: 'right', |
| | | b: 'bottom' |
| | | ); |
| | | $size: (4, 8, 10, 16); |
| | | @each $dName, $dValue in $direction { |
| | | @each $i in $size { |
| | | .p-#{$dName}-#{$i} { |
| | | padding-#{$dValue}: #{$i}px; |
| | | } |
| | | .m-#{$dName}-#{$i} { |
| | | margin-#{$dValue}: #{$i}px; |
| | | } |
| | | } |
| | | } |
| | | |
| | | @each $i in $size { |
| | | .p-v-#{$i} { |
| | | padding: #{$i}px 0; |
| | | } |
| | | .p-h-#{$i} { |
| | | padding: 0 #{$i}px; |
| | | } |
| | | .m-v-#{$i} { |
| | | margin: #{$i}px 0; |
| | | } |
| | | .m-h-#{$i} { |
| | | margin: 0 #{$i}px; |
| | | } |
| | | } |
| | | |
| | | /************************************** å®½é« **************************************/ |
| | | $csize: ( |
| | | small: var(--el-component-size-small), |
| | | default: var(--el-component-size-default), |
| | | large: var(--el-component-size-large) |
| | | ); |
| | | $ws: (20px, 40px, 60px, 100px, 150px, 300px); |
| | | @each $name, $value in $csize { |
| | | .w-#{$name} { |
| | | width: #{$value}; |
| | | } |
| | | .h-#{$name} { |
| | | height: #{$value}; |
| | | } |
| | | } |
| | | @each $i in $ws { |
| | | .w-#{$i} { |
| | | width: #{$i}; |
| | | } |
| | | .h-#{$i} { |
| | | height: #{$i}; |
| | | } |
| | | } |
| | | |
| | | // |
| | | .cursor-p { |
| | | cursor: pointer; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | @use './base.scss'; |
| | |
| | | import { map, satellite, controlbar } from './index_old'; |
| | | // import '@/lib/jquery-3.5.1.min'; |
| | | |
| | | /** |
| | | * åæ æ¾åé¼ æ ç¹å»åè°äºä»¶ |
| | | */ |
| | | var _locationMarker, _locationText; |
| | | function _coorPickListener(e) { |
| | | var text = `ç»åº¦: ${e.lnglat.getLng()}<br/>纬度: ${e.lnglat.getLat()}`; |
| | | if (_locationMarker == undefined) { |
| | | var textM = new AMap.Text({ |
| | | style: { |
| | | 'font-size': '12px' |
| | | }, |
| | | text: text, |
| | | position: e.lnglat, |
| | | offset: new AMap.Pixel(0, 30) |
| | | }); |
| | | |
| | | var marker = new AMap.Marker({ |
| | | position: e.lnglat |
| | | // icon: icon, |
| | | // anchor: 'top-center', |
| | | // content: '<i class="fa fa-map-marker fa-2x" style="color: #E6DB06;" aria-hidden="true"></i>' |
| | | }); |
| | | map.add(marker); |
| | | map.add(textM); |
| | | _locationMarker = marker; |
| | | _locationText = textM; |
| | | } else { |
| | | _locationMarker.setPosition(e.lnglat); |
| | | _locationText.setPosition(e.lnglat); |
| | | _locationText.setText(text); |
| | | } |
| | | } |
| | | |
| | | export default { |
| | | /** |
| | | * å¼å
³å°ç©æ 注 |
| | | * @param {boolean} value |
| | | */ |
| | | toggleFeatures: (value) => { |
| | | toggleFeatures(value) { |
| | | value ? map.setFeatures(['bg', 'road', 'point', 'building']) : map.setFeatures(['bg', 'road']); |
| | | }, |
| | | |
| | | /** |
| | | * å¼å
³å«æå°å¾ |
| | | * @param {boolean} value |
| | | */ |
| | | toggleSatellite: (value) => { |
| | | toggleSatellite(value) { |
| | | value ? satellite.show() : satellite.hide(); |
| | | }, |
| | | |
| | | /** |
| | | * å¼å
³æ§å¶ç½ç |
| | | * @param {boolean} value |
| | | */ |
| | | toggleControlbar: (value) => { |
| | | toggleControlbar(value) { |
| | | // value ? controlbar.show() : controlbar.hide(); |
| | | value ? $('.amap-controlbar').show() : $('.amap-controlbar').hide(); |
| | | }, |
| | | |
| | | /** |
| | | * å¼å
³åæ æ¾å |
| | | * @param {boolean} value |
| | | */ |
| | | toggleCoorPicking(value) { |
| | | if (value) { |
| | | map.on('click', _coorPickListener); |
| | | } else { |
| | | map.off('click', _coorPickListener); |
| | | map.remove([_locationMarker, _locationText]); |
| | | _locationMarker = undefined; |
| | | _locationText = undefined; |
| | | } |
| | | } |
| | | }; |
| | |
| | | <div class="overlay-container"> |
| | | <CoreHeader></CoreHeader> |
| | | <MapToolbox></MapToolbox> |
| | | <CoreMenu></CoreMenu> |
| | | <router-view></router-view> |
| | | </div> |
| | | </template> |
| | |
| | | <template> |
| | | <div>HomePage</div> |
| | | <div>ElectricityMode</div> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | name: 'HistoryPage', |
| | | name: 'HistoryPage' |
| | | }; |
| | | </script> |
| | |
| | | <template> |
| | | <div>HomePage</div> |
| | | <div>GridMode</div> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | name: 'HistoryPage', |
| | | name: 'HistoryPage' |
| | | }; |
| | | </script> |
| | |
| | | <template> |
| | | <div>HomePage</div> |
| | | <div>RealtimeMode</div> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | name: 'HistoryPage', |
| | | name: 'HistoryPage' |
| | | }; |
| | | </script> |
| | |
| | | <template> |
| | | <div>HomePage</div> |
| | | <div>RiskMode</div> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | name: 'HistoryPage', |
| | | name: 'HistoryPage' |
| | | }; |
| | | </script> |
| | |
| | | '@': fileURLToPath(new URL('./src', import.meta.url)) |
| | | } |
| | | }, |
| | | css: { |
| | | // postcss: { |
| | | // plugins: [autoprefixer], |
| | | // }, |
| | | preprocessorOptions: { |
| | | scss: { |
| | | additionalData: `@use "@/styles/index.scss" as *;` |
| | | } |
| | | } |
| | | }, |
| | | server: { |
| | | host: '0.0.0.0' |
| | | } |