Commit d8b1c2bd authored by 蒋忠杰's avatar 蒋忠杰

Merge remote-tracking branch 'origin/dev' into dev

parents 8d271b0c cef9b7f4
...@@ -169,9 +169,12 @@ export default { ...@@ -169,9 +169,12 @@ export default {
.user-info{ .user-info{
width: 84px; width: 84px;
height: 36px; height: 34px;
background: url(../../imgs/subwayBg.png); border-top: 1px solid rgba(255, 255, 255, 0.75);
background-size: 100% 100%; border-bottom: 1px solid rgba(255, 255, 255, 0.75);
border-left: 1px solid rgba(255, 255, 255, 0.75);
border-top-left-radius: 7px;
border-bottom-left-radius: 7px;
text-align:center; text-align:center;
opacity: 0; opacity: 0;
float: right; float: right;
......
...@@ -26,8 +26,9 @@ ...@@ -26,8 +26,9 @@
<div class="current-date">{{ time | formatDate2 }}</div> <div class="current-date">{{ time | formatDate2 }}</div>
</div> </div>
<div class="subway-container" > <div class="subway-container" >
<div class="subway-info" > <div class="subway-info" :style="{width:station.length*13+ 'px','min-width':'60px'}">
<span :class="station.length<6?'lineFeed':''">{{station}}</span> <!-- <span :class="station.length<6?'lineFeed':''">{{station}}</span> -->
<span>{{station}}</span>
<!-- <div class="out-img"> <!-- <div class="out-img">
</div> --> </div> -->
</div> </div>
...@@ -199,14 +200,13 @@ export default { ...@@ -199,14 +200,13 @@ export default {
this.zdCountNum = this.size.split('-')[0] this.zdCountNum = this.size.split('-')[0]
this.xlCountNum = this.size.split('-')[1] this.xlCountNum = this.size.split('-')[1]
let currentPath=this.$route.path let currentPath = this.$route.path
let routeName = currentPath.slice(0, 7) let routeName = currentPath.slice(0, 7)
if (routeName == '/routes') { if (routeName == '/routes') {
this.isShow = true this.isShow = true
} else { } else {
this.isShow = false this.isShow = false
} }
}, },
filters: { filters: {
formatDate: function(value) { formatDate: function(value) {
...@@ -265,7 +265,6 @@ export default { ...@@ -265,7 +265,6 @@ export default {
this.xlCountNum = val.split('-')[1] this.xlCountNum = val.split('-')[1]
// console.log(this.zdCountNum, '1--------1') // console.log(this.zdCountNum, '1--------1')
// console.log(this.xlCountNum, '2--------2') // console.log(this.xlCountNum, '2--------2')
}, },
'$route.path'(val) { '$route.path'(val) {
// console.log(val, '--------') // console.log(val, '--------')
...@@ -445,7 +444,6 @@ export default { ...@@ -445,7 +444,6 @@ export default {
transform: translateY(60px); transform: translateY(60px);
} }
// 注册主题 // 注册主题
@import "~@/assets/style/theme/register.scss"; @import "~@/assets/style/theme/register.scss";
// 左上角logo // 左上角logo
...@@ -494,23 +492,20 @@ export default { ...@@ -494,23 +492,20 @@ export default {
} }
.subway-info { .subway-info {
min-width: 104px; height: 34px;
height: 36px; line-height:34px;
line-height: 36px;
background: url(./imgs/subwayBg.png);
background-size: 100% 100%;
transform: translateX(12px);
text-align:right; text-align:right;
span {
display:inline-block;
height: 36px;
// padding-top:2px;
padding-right:16px;
font-size: 12px; font-size: 12px;
padding-right:16px;
font-family: Microsoft YaHei; font-family: Microsoft YaHei;
font-weight: 400; font-weight: 400;
color: rgba(255, 255, 255, 0.75); color: rgba(255, 255, 255, 0.75);
} transform: translateX(12px);
border-top: 1px solid rgba(255, 255, 255, 0.75);
border-bottom: 1px solid rgba(255, 255, 255, 0.75);
border-left: 1px solid rgba(255, 255, 255, 0.75);
border-top-left-radius: 7px;
border-bottom-left-radius: 7px;
} }
} }
</style> </style>
...@@ -184,7 +184,8 @@ export default { ...@@ -184,7 +184,8 @@ export default {
let mapList = this.mapList let mapList = this.mapList
this.imgurl = url this.imgurl = url
// 计算静态地图映射到地图上的范围 // 计算静态地图映射到地图上的范围
let extent = [-1100, 110, 1460, 820] // let extent = [-1100, 110, 1460, 820]
let extent = [-600, -100, 800, 1000]
let projection = new Projection({ let projection = new Projection({
// 投影 // 投影
...@@ -238,7 +239,7 @@ export default { ...@@ -238,7 +239,7 @@ export default {
view: new View({ view: new View({
projection: projection, projection: projection,
center: getCenter([0, 0, 0, 0]), // 获取范围的中心坐标。 center: getCenter([0, 0, 0, 0]), // 获取范围的中心坐标。
zoom: 2.5, zoom: 1.5,
maxZoom: 5.0, maxZoom: 5.0,
minZoom: 1.5, minZoom: 1.5,
  extent: [-1100, -100, 2000, 1000]//[minX, minY, maxX, maxY] 控制拖动   extent: [-1100, -100, 2000, 1000]//[minX, minY, maxX, maxY] 控制拖动
......
...@@ -185,7 +185,8 @@ export default { ...@@ -185,7 +185,8 @@ export default {
let mapList = this.mapList let mapList = this.mapList
this.imgurl = url this.imgurl = url
// 计算静态地图映射到地图上的范围 // 计算静态地图映射到地图上的范围
let extent = [-1100, 110, 1460, 820] // let extent = [-1100, 110, 1460, 820]
let extent = [-600, -100, 800, 1000]
let projection = new Projection({ let projection = new Projection({
// 投影 // 投影
...@@ -239,7 +240,7 @@ export default { ...@@ -239,7 +240,7 @@ export default {
view: new View({ view: new View({
projection: projection, projection: projection,
center: getCenter([0, 0, 0, 0]), // 获取范围的中心坐标。 center: getCenter([0, 0, 0, 0]), // 获取范围的中心坐标。
zoom: 2.5, zoom: 1.5,
maxZoom: 5.0, maxZoom: 5.0,
minZoom: 1.5, minZoom: 1.5,
  extent: [-1100, -100, 2000, 1000]//[minX, minY, maxX, maxY] 控制拖动   extent: [-1100, -100, 2000, 1000]//[minX, minY, maxX, maxY] 控制拖动
......
...@@ -145,7 +145,8 @@ export default { ...@@ -145,7 +145,8 @@ export default {
// 初始化地图 // 初始化地图
initMap(url) { initMap(url) {
// 计算静态地图映射到地图上的范围 // 计算静态地图映射到地图上的范围
let extent = [-1100, 110, 1460, 820] // let extent = [-1100, 110, 1460, 820]
let extent = [-600, -100, 800, 1000]
let projection = new Projection({ let projection = new Projection({
// 投影 // 投影
...@@ -177,9 +178,9 @@ export default { ...@@ -177,9 +178,9 @@ export default {
view: new View({ view: new View({
projection: projection, projection: projection,
center: getCenter([0, 0, 0, 0]), // 获取范围的中心坐标。 center: getCenter([0, 0, 0, 0]), // 获取范围的中心坐标。
zoom: 2.65, zoom: 1.5,
maxZoom: 2.65, maxZoom: 1.5,
minZoom: 2.65, minZoom: 1.5,
extent: [-1030, 100, 2000, 1000] //[minX, minY, maxX, maxY] 控制拖动 extent: [-1030, 100, 2000, 1000] //[minX, minY, maxX, maxY] 控制拖动
}) })
}) })
......
...@@ -203,7 +203,8 @@ export default { ...@@ -203,7 +203,8 @@ export default {
let mapList = this.mapList let mapList = this.mapList
this.imgurl = url this.imgurl = url
// 计算静态地图映射到地图上的范围 // 计算静态地图映射到地图上的范围
let extent = [-1100, 110, 1460, 820] // let extent = [-1100, 110, 1460, 820]
let extent = [-600, -100, 800, 1000]
let projection = new Projection({ let projection = new Projection({
// 投影 // 投影
...@@ -257,7 +258,7 @@ export default { ...@@ -257,7 +258,7 @@ export default {
view: new View({ view: new View({
projection: projection, projection: projection,
center: getCenter([0, 0, 0, 0]), // 获取范围的中心坐标。 center: getCenter([0, 0, 0, 0]), // 获取范围的中心坐标。
zoom: 2.5, zoom: 1.5,
maxZoom: 5.0, maxZoom: 5.0,
minZoom: 1.5, minZoom: 1.5,
extent: [-1100, -100, 2000, 1000] //[minX, minY, maxX, maxY] 控制拖动 extent: [-1100, -100, 2000, 1000] //[minX, minY, maxX, maxY] 控制拖动
......
...@@ -289,7 +289,8 @@ export default { ...@@ -289,7 +289,8 @@ export default {
let mapList = this.mapList let mapList = this.mapList
this.imgurl = url this.imgurl = url
// 计算静态地图映射到地图上的范围 // 计算静态地图映射到地图上的范围
let extent = [-1100, 110, 1460, 820] // let extent = [-1100, 110, 1460, 820]
let extent = [-600, -100, 800, 1000]
let projection = new Projection({ let projection = new Projection({
// 投影 // 投影
......
...@@ -242,7 +242,8 @@ export default { ...@@ -242,7 +242,8 @@ export default {
let mapList = this.mapList let mapList = this.mapList
this.imgurl = url this.imgurl = url
// 计算静态地图映射到地图上的范围 // 计算静态地图映射到地图上的范围
let extent = [-1100, 110, 1460, 820] // let extent = [-1100, 110, 1460, 820]
let extent = [-600, -100, 800, 1000]
let projection = new Projection({ let projection = new Projection({
// 投影 // 投影
......
...@@ -202,7 +202,8 @@ export default { ...@@ -202,7 +202,8 @@ export default {
let mapList = this.mapList let mapList = this.mapList
this.imgurl = url this.imgurl = url
// 计算静态地图映射到地图上的范围 // 计算静态地图映射到地图上的范围
let extent = [-1100, 110, 1460, 820] // let extent = [-1100, 110, 1460, 820]
let extent = [-600, -100, 800, 1000]
let projection = new Projection({ let projection = new Projection({
// 投影 // 投影
...@@ -256,7 +257,7 @@ export default { ...@@ -256,7 +257,7 @@ export default {
view: new View({ view: new View({
projection: projection, projection: projection,
center: getCenter([0, 0, 0, 0]), // 获取范围的中心坐标。 center: getCenter([0, 0, 0, 0]), // 获取范围的中心坐标。
zoom: 2.5, zoom: 1.5,
maxZoom: 5.0, maxZoom: 5.0,
minZoom: 1.5, minZoom: 1.5,
  extent: [-1100, -100, 2000, 1000]//[minX, minY, maxX, maxY] 控制拖动   extent: [-1100, -100, 2000, 1000]//[minX, minY, maxX, maxY] 控制拖动
...@@ -619,7 +620,7 @@ export default { ...@@ -619,7 +620,7 @@ export default {
}).then(data => { }).then(data => {
if (data && data.code === 0) { if (data && data.code === 0) {
this.treeData = data.nodes this.treeData = data.nodes
if(this.treeData){ if (this.treeData) {
this.treeData.forEach(element => { this.treeData.forEach(element => {
element.readPath = this.urlPath + element.filePath element.readPath = this.urlPath + element.filePath
}) })
......
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
<div v-show="transformationSta==1"> <div v-show="transformationSta==1">
<el-row style="background:#fff;" :style="{height:currentHeight-115+'px'}" :span="24"> <el-row style="background:#fff;" :style="{height:currentHeight-115+'px'}" :span="24">
<el-col class="resource-container" :style="obj" ref="drag"> <el-col class="resource-container" :style="obj" ref="drag">
<div id="policeMap" class="map" ref='map' style="width: 100%;position: relative;" :style="{height:currentHeight-135+'px'}"></div> <div id="policeMap" class="map" ref='map' style="width: 100%;position: relative;" :style="{height:currentHeight-125+'px'}"></div>
</el-col> </el-col>
</el-row> </el-row>
...@@ -214,7 +214,8 @@ export default { ...@@ -214,7 +214,8 @@ export default {
let mapList = this.mapList let mapList = this.mapList
this.imgurl = url this.imgurl = url
// 计算静态地图映射到地图上的范围 // 计算静态地图映射到地图上的范围
let extent = [-1100, 110, 1460, 820] // let extent = [-1100, 110, 1460, 820]
let extent = [-600, -100, 800, 1000]
let projection = new Projection({ let projection = new Projection({
// 投影 // 投影
...@@ -268,7 +269,7 @@ export default { ...@@ -268,7 +269,7 @@ export default {
view: new View({ view: new View({
projection: projection, projection: projection,
center: getCenter([0, 0, 0, 0]), // 获取范围的中心坐标。 center: getCenter([0, 0, 0, 0]), // 获取范围的中心坐标。
zoom: 2.5, zoom: 1.5,
maxZoom: 5.0, maxZoom: 5.0,
minZoom: 1.5, minZoom: 1.5,
  extent: [-1100, -100, 2000, 1000]//[minX, minY, maxX, maxY] 控制拖动   extent: [-1100, -100, 2000, 1000]//[minX, minY, maxX, maxY] 控制拖动
......
...@@ -223,7 +223,9 @@ ...@@ -223,7 +223,9 @@
let mapList = this.mapList let mapList = this.mapList
// 计算静态地图映射到地图上的范围 // 计算静态地图映射到地图上的范围
let extent = [-1100, 110, 1460, 820] // let extent = [-1100, 110, 1460, 820]
let extent = [-600, -100, 800, 1000]
let projection = new Projection({ let projection = new Projection({
// 投影 // 投影
code: 'xkcd-image', code: 'xkcd-image',
...@@ -257,7 +259,7 @@ ...@@ -257,7 +259,7 @@
view: new View({ view: new View({
projection: projection, projection: projection,
center: getCenter([0, 0, 418, 600]), // 获取范围的中心坐标。 center: getCenter([0, 0, 418, 600]), // 获取范围的中心坐标。
zoom: 2.5, zoom: 1.5,
maxZoom: 5, maxZoom: 5,
minZoom: 1.5, minZoom: 1.5,
extent: [-1100, -100, 2000, 1000]//[minX,minY,maxX,maxY] 控制拖动 extent: [-1100, -100, 2000, 1000]//[minX,minY,maxX,maxY] 控制拖动
......
...@@ -109,7 +109,7 @@ export default { ...@@ -109,7 +109,7 @@ export default {
}, },
data() { data() {
return { return {
isShow:true, isShow: true,
imgLayerList: [], imgLayerList: [],
controlList: [], controlList: [],
urlPath: window.CONFIG.urlPath, urlPath: window.CONFIG.urlPath,
...@@ -195,11 +195,11 @@ export default { ...@@ -195,11 +195,11 @@ export default {
QueryDetail QueryDetail
}, },
watch: { watch: {
'leftListData'(val){ 'leftListData'(val) {
if(val.length>0){ if (val.length > 0) {
this.isShow=true this.isShow = true
}else{ } else {
this.isShow=false this.isShow = false
} }
} }
}, },
...@@ -213,7 +213,8 @@ export default { ...@@ -213,7 +213,8 @@ export default {
let mapList = this.mapList let mapList = this.mapList
this.imgurl = url this.imgurl = url
// 计算静态地图映射到地图上的范围 // 计算静态地图映射到地图上的范围
let extent = [-1100, 110, 1460, 820] // let extent = [-1100, 110, 1460, 820]
let extent = [-600, -100, 800, 1000]
let projection = new Projection({ let projection = new Projection({
// 投影 // 投影
...@@ -267,7 +268,7 @@ export default { ...@@ -267,7 +268,7 @@ export default {
view: new View({ view: new View({
projection: projection, projection: projection,
center: getCenter([0, 0, 0, 0]), // 获取范围的中心坐标。 center: getCenter([0, 0, 0, 0]), // 获取范围的中心坐标。
zoom: 2.5, zoom: 1.5,
maxZoom: 5.0, maxZoom: 5.0,
minZoom: 1.5, minZoom: 1.5,
extent: [-1100, -100, 2000, 1000] //[minX, minY, maxX, maxY] 控制拖动 extent: [-1100, -100, 2000, 1000] //[minX, minY, maxX, maxY] 控制拖动
...@@ -286,7 +287,7 @@ export default { ...@@ -286,7 +287,7 @@ export default {
//将鹰眼控件加载到map中 //将鹰眼控件加载到map中
// this.map.addControl(this.controlList[0]) // this.map.addControl(this.controlList[0])
if(this.leftListData.length==0){ if (this.leftListData.length == 0) {
this.clearLayer() this.clearLayer()
} }
// //点击事件 // //点击事件
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment