|
@@ -71,10 +71,10 @@
|
|
|
<el-link icon="el-icon-close" :underline="false" @click="visible = false"></el-link>
|
|
|
</div>
|
|
|
<el-row>
|
|
|
- <p>距地面高度:{{equipZ}}m</p>
|
|
|
+ <p>距地面高度:{{equipZ}}mm</p>
|
|
|
</el-row>
|
|
|
- <div style="padding: 10px 15px;">
|
|
|
- <el-slider v-model="equipZ" :max="maxHeight" :step="0.0001" show-input></el-slider>
|
|
|
+ <div class="elSlider">
|
|
|
+ <el-slider v-model="equipZ" :max="maxHeight" :step="1" :marks="marks"></el-slider>
|
|
|
</div>
|
|
|
<el-row style="text-align: right;">
|
|
|
<el-button size="mini" @click="visible = false">取消</el-button>
|
|
@@ -101,7 +101,7 @@ export default {
|
|
|
return {
|
|
|
visible: false,
|
|
|
equipZ: 0,
|
|
|
- maxHeight: 99,
|
|
|
+ maxHeight: 99000,
|
|
|
popoverPosition: {
|
|
|
top: 0,
|
|
|
left: 0,
|
|
@@ -144,7 +144,11 @@ export default {
|
|
|
value: "CADID",
|
|
|
label: "显示图纸编码"
|
|
|
}],
|
|
|
- equipList: [],
|
|
|
+ equipList: [],
|
|
|
+ marks: {
|
|
|
+ 0: '本层地面',
|
|
|
+ 99000: '本层屋顶'
|
|
|
+ },
|
|
|
loading: false,
|
|
|
pageNumber: 1,
|
|
|
pageSize: 50,
|
|
@@ -226,7 +230,7 @@ export default {
|
|
|
const e = events[0];
|
|
|
this.selectedIcon = item;
|
|
|
if (item.data.Z) {
|
|
|
- this.equipZ = (item.data.Z / 1000);
|
|
|
+ this.equipZ = (item.data.Z);
|
|
|
} else {
|
|
|
this.equipZ = 0;
|
|
|
}
|
|
@@ -239,8 +243,8 @@ export default {
|
|
|
},
|
|
|
// 修改设备Z坐标
|
|
|
handleUpdateZ() {
|
|
|
- if (this.selectedIcon.data.Z !== this.equipZ * 1000) {
|
|
|
- this.selectedIcon.data.Z = this.equipZ * 1000;
|
|
|
+ if (this.selectedIcon.data.Z !== this.equipZ) {
|
|
|
+ this.selectedIcon.data.Z = this.equipZ;
|
|
|
this.isChange = true;
|
|
|
this.visible = false;
|
|
|
}
|
|
@@ -384,7 +388,7 @@ export default {
|
|
|
if (data.StructureInfo && data.StructureInfo.Height) {
|
|
|
this.maxHeight = data.StructureInfo.Height;
|
|
|
} else {
|
|
|
- this.maxHeight = 99;
|
|
|
+ this.maxHeight = 99000;
|
|
|
}
|
|
|
if (data.Outline && data.Outline.length) {
|
|
|
this.floorOutline = data.Outline;
|
|
@@ -569,6 +573,13 @@ export default {
|
|
|
position: fixed;
|
|
|
}
|
|
|
}
|
|
|
+.elSlider{
|
|
|
+ padding: 10px 24px;
|
|
|
+ margin-bottom:15px;
|
|
|
+ /deep/ .el-slider__marks-text:nth-child(2) {
|
|
|
+ width: 80px;
|
|
|
+ }
|
|
|
+}
|
|
|
.no-data {
|
|
|
height: 100%;
|
|
|
text-align: center;
|