|
@@ -65,7 +65,7 @@
|
|
</p>
|
|
</p>
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
<!-- 编辑分布图 -->
|
|
<!-- 编辑分布图 -->
|
|
- <el-tooltip v-if='editPmt' class='bjpmt' effect='dark' content='编辑分布图' placement='left'>
|
|
|
|
|
|
+ <el-tooltip v-if='editPmt' class='bjpmt' effect='dark' :content='editTips' placement='left'>
|
|
<span class='edit-icon' @click='goToEditer'>
|
|
<span class='edit-icon' @click='goToEditer'>
|
|
<i class='el-icon-edit' style='color:#fff;font-size:16px;'></i>
|
|
<i class='el-icon-edit' style='color:#fff;font-size:16px;'></i>
|
|
</span>
|
|
</span>
|
|
@@ -102,7 +102,8 @@ export default {
|
|
remarksText: '', //查询出来的备注
|
|
remarksText: '', //查询出来的备注
|
|
text1:
|
|
text1:
|
|
'<p>1.主要设备房包括:冷源机房,热源机房,开闭站,配变电所(室),发电机房,消防水泵房,消防高位水箱间,生活水泵房,慧云机房,垃圾房。</p>',
|
|
'<p>1.主要设备房包括:冷源机房,热源机房,开闭站,配变电所(室),发电机房,消防水泵房,消防高位水箱间,生活水泵房,慧云机房,垃圾房。</p>',
|
|
- text2: '<p>2.图例后×的数字,代表此位置的数量。</p>',
|
|
|
|
|
|
+ // text2: '<p>2.图例后×的数字,代表此位置的数量。</p>',
|
|
|
|
+ text2: '',
|
|
show: false,
|
|
show: false,
|
|
show2: false,
|
|
show2: false,
|
|
loading: true,
|
|
loading: true,
|
|
@@ -119,7 +120,9 @@ export default {
|
|
editPmt: true, //是否有跳转道图例库的权限
|
|
editPmt: true, //是否有跳转道图例库的权限
|
|
floorSelectAble: [],
|
|
floorSelectAble: [],
|
|
floor: '', //传的楼层
|
|
floor: '', //传的楼层
|
|
- floorName: ''
|
|
|
|
|
|
+ floorName: '',
|
|
|
|
+ planNum: '', //主要设备房
|
|
|
|
+ typeNum: ''
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -143,6 +146,10 @@ export default {
|
|
categoryId: {
|
|
categoryId: {
|
|
default: '',
|
|
default: '',
|
|
type: String
|
|
type: String
|
|
|
|
+ },
|
|
|
|
+ editTips: {
|
|
|
|
+ type: String,
|
|
|
|
+ default: ''
|
|
}
|
|
}
|
|
},
|
|
},
|
|
components: { lengendView, legendRemarks, lengendEdit },
|
|
components: { lengendView, legendRemarks, lengendEdit },
|
|
@@ -171,6 +178,13 @@ export default {
|
|
queryRead({ data, postParams }).then(res => {
|
|
queryRead({ data, postParams }).then(res => {
|
|
if (res.data.Data && res.data.Data[0].Note) {
|
|
if (res.data.Data && res.data.Data[0].Note) {
|
|
let note = res.data.Data[0].Note
|
|
let note = res.data.Data[0].Note
|
|
|
|
+ console.log('notenotenote', note)
|
|
|
|
+ if (this.planNum > 0) {
|
|
|
|
+ this.remarksText = `${this.text1}${note}`
|
|
|
|
+ }
|
|
|
|
+ if (this.typeNum > 1) {
|
|
|
|
+ this.remarksText = `${this.text2}${note}`
|
|
|
|
+ }
|
|
if (note.search(this.text1) != -1 && note.search(this.text2) != -1) {
|
|
if (note.search(this.text1) != -1 && note.search(this.text2) != -1) {
|
|
this.remarksText = `${note}`
|
|
this.remarksText = `${note}`
|
|
} else if (note.search(this.text1) != -1) {
|
|
} else if (note.search(this.text1) != -1) {
|
|
@@ -221,8 +235,6 @@ export default {
|
|
{ editerUrl } = conf
|
|
{ editerUrl } = conf
|
|
let floorName = this.floorName ? this.floorName : this.$cookie.get('floorNow')
|
|
let floorName = this.floorName ? this.floorName : this.$cookie.get('floorNow')
|
|
let data = `categoryId=${categoryId}&projectId=${this.plazaId}&BuildingID=1&FloorID=${FloorID}&FloorName=${floorName}&fmapID=${this.fmapID}`
|
|
let data = `categoryId=${categoryId}&projectId=${this.plazaId}&BuildingID=1&FloorID=${FloorID}&FloorName=${floorName}&fmapID=${this.fmapID}`
|
|
- console.log('data', data)
|
|
|
|
- console.log('this.categoryId', this.categoryId, this.$cookie.get('categoryId'))
|
|
|
|
let url = editerUrl + 'editer?' + encodeURIComponent(data)
|
|
let url = editerUrl + 'editer?' + encodeURIComponent(data)
|
|
window.open(url, true)
|
|
window.open(url, true)
|
|
},
|
|
},
|
|
@@ -248,6 +260,14 @@ export default {
|
|
this.loading = false
|
|
this.loading = false
|
|
//console.log('图例', res)
|
|
//console.log('图例', res)
|
|
this.viewTable = res.data.Data ? res.data.Data : []
|
|
this.viewTable = res.data.Data ? res.data.Data : []
|
|
|
|
+ if (this.viewTable.length > 0) {
|
|
|
|
+ this.viewTable.forEach(el => {
|
|
|
|
+ console.log(el)
|
|
|
|
+ if (el.Name == '主要设备房') {
|
|
|
|
+ this.planNum = el.Num
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
if (this.$refs.viewLengend) {
|
|
if (this.$refs.viewLengend) {
|
|
this.$refs.viewLengend.setSelected()
|
|
this.$refs.viewLengend.setSelected()
|