| | |
| | | <script type="text/javascript" src="../../static/js/handlebars/handlebars-v4.5.3.js"></script> |
| | | <script type="text/javascript" src="../../static/js/common.js"></script> |
| | | <script type="text/javascript" src="../../static/js/vue.min.js"></script> |
| | | |
| | | <!-- 引入样式 --> |
| | | <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css"> |
| | | <!-- 引入组件库 --> |
| | | <script src="https://unpkg.com/element-ui/lib/index.js"></script> |
| | | <style> |
| | | .pointContainer { |
| | | display: flex; |
| | |
| | | </head> |
| | | <body> |
| | | <div id="app" style="display: flex;justify-content: space-around;margin-top: 50px;flex-wrap: wrap;" @click="bgClick()"> |
| | | <div style="flex: 12;"> |
| | | <div style="flex: 12;" :style="{scale:showScale/100.0,marginTop:(showScale-100)*5 + 'px'}"> |
| | | <div> |
| | | <div class="pointContainer" v-for="(x,index) in map" :key="index"> |
| | | <div v-if="index != 0 && (index != map.length-1)" v-for="(y,idx) in x" :key="idx"> |
| | |
| | | </div> |
| | | </div> |
| | | <div style="padding: 20px;flex: 5;margin-top: -70px;"> |
| | | <el-slider v-model="showScale" :marks="showScaleMarks"></el-slider> |
| | | <div style="display: flex;justify-content: space-between;flex-wrap: wrap;"> |
| | | <div class="hoverCard" style="width: 100%;"> |
| | | <div class="card-details" style="place-content: normal;height: auto;"> |
| | |
| | | searchLocNo: "", |
| | | outSite: null, |
| | | outSites: null, |
| | | showScale: 75, //控制地图显示大小比例 |
| | | showScaleMarks: {//比例滑动条显示标记 |
| | | 0: "0%", |
| | | 50: { |
| | | style: { |
| | | color: '#1989FA' |
| | | }, |
| | | label: "50%" |
| | | }, |
| | | 100: "100%", |
| | | } |
| | | }, |
| | | created(){ |
| | | this.init() |
| | |
| | | let data = this.map |
| | | let rowData = data[x] |
| | | for (var i = 1; i < rowData.length; i++) { |
| | | console.log(rowData[i],rowData[i].locNo,rowData[i].locNo != undefined) |
| | | if (rowData[i].locNo != undefined) { |
| | | let locNo = rowData[i].locNo; |
| | | return "#" + parseInt(locNo.substr(0, 2)); |