|
@@ -9,7 +9,7 @@
|
|
|
<tr class="RQ">
|
|
|
<td>空间二维码</td>
|
|
|
<td class="qr-code">
|
|
|
- <img :src="Info.infos.RoomQRCode?`/image-service/image-service/common/file_get?systemId=dataPlatform&key=${Info.infos.RoomQRCode}`:'/static/img/noimg.png'">
|
|
|
+ <img :src="Info.infos.RoomQRCode?`/dp-auxiliary/image-service/common/file_get?systemId=dataPlatform&key=${Info.infos.RoomQRCode}`:'/static/img/noimg.png'">
|
|
|
<p class="download" v-if="Info.infos.RoomQRCode" @click="downloadFile(Info.infos.RoomQRCode)">下载</p>
|
|
|
</td>
|
|
|
</tr>
|
|
@@ -204,22 +204,23 @@ export default {
|
|
|
methods: {
|
|
|
getEqNameAndId () {
|
|
|
let hostUrl = location.search
|
|
|
- this.objectId = hostUrl.split("&")[0].toString().split("=")[1]
|
|
|
- let pid = hostUrl.split("&")[1].toString().split("=")[1]
|
|
|
- let secret = ''
|
|
|
- if(hostUrl.split("&")[2]){
|
|
|
- secret = hostUrl.split("&")[2].toString().split("=")[1]
|
|
|
+ if(hostUrl){
|
|
|
+ this.objectId = hostUrl.split("&")[0].toString().split("=")[1]
|
|
|
+ let pid = hostUrl.split("&")[1].toString().split("=")[1]
|
|
|
+ let secret = ''
|
|
|
+ if(hostUrl.split("&")[2]){
|
|
|
+ secret = hostUrl.split("&")[2].toString().split("=")[1]
|
|
|
+ }
|
|
|
+ this.$store.commit('setProId', pid)
|
|
|
+ this.$store.commit(`setSecret`, secret)
|
|
|
+ this.initData(this.objectId)
|
|
|
+ this.searchBuildingName(this.objectId)
|
|
|
+ this.noRecoverAlarm(this.objectId)
|
|
|
+ this.envInfo(this.objectId)
|
|
|
+ this.getCurrentData(this.objectId)
|
|
|
+ this.underwayOrder(this.objectId)
|
|
|
+ this.getMoniCount(this.objectId)
|
|
|
}
|
|
|
- console.log(pid, this.$store.state.projId)
|
|
|
- this.$store.commit('setProId', pid)
|
|
|
- this.$store.commit(`setSecret`, secret)
|
|
|
- this.initData(this.objectId)
|
|
|
- this.searchBuildingName(this.objectId)
|
|
|
- this.noRecoverAlarm(this.objectId)
|
|
|
- this.envInfo(this.objectId)
|
|
|
- this.getCurrentData(this.objectId)
|
|
|
- this.underwayOrder(this.objectId)
|
|
|
- this.getMoniCount(this.objectId)
|
|
|
},
|
|
|
// 右侧耗电功率和累计用电量的统计
|
|
|
getCurrentData (objectId) {
|
|
@@ -306,7 +307,7 @@ export default {
|
|
|
status: 'alalrm'
|
|
|
}
|
|
|
}
|
|
|
- axios.post(`/alarm-system/alarm-system/alarm/list?projectId=${this.$store.state.projId}&secret=${this.$store.state.secret}`, params).then(res => {
|
|
|
+ axios.post(`/dp-auxiliary/alarm-system/alarm/list?projectId=${this.$store.state.projId}&secret=${this.$store.state.secret}`, params).then(res => {
|
|
|
let data = res.data
|
|
|
if (data.Result == 'success') {
|
|
|
this.noAlarmNum = data.Count
|
|
@@ -435,7 +436,7 @@ export default {
|
|
|
let params = {
|
|
|
spaceId: this.objectId // 空间id
|
|
|
}
|
|
|
- axios.post(`/alarm-system/alarm-system/alarm/equipInSpace/query?projectId=${this.$store.state.projId}&secret=${this.$store.state.secret}`, params).then(res => {
|
|
|
+ axios.post(`/dp-auxiliary/alarm-system/alarm/equipInSpace/query?projectId=${this.$store.state.projId}&secret=${this.$store.state.secret}`, params).then(res => {
|
|
|
let data = res.data
|
|
|
if (data.Result == 'success') {
|
|
|
let alarm = data.Content
|
|
@@ -464,7 +465,7 @@ export default {
|
|
|
let params = {
|
|
|
spaceId: this.objectId // 空间id
|
|
|
}
|
|
|
- axios.post(`/alarm-system/alarm-system/alarm/equipForSpace/query?projectId=${this.$store.state.projId}&secret=${this.$store.state.secret}`, params).then(res => {
|
|
|
+ axios.post(`/dp-auxiliary/alarm-system/alarm/equipForSpace/query?projectId=${this.$store.state.projId}&secret=${this.$store.state.secret}`, params).then(res => {
|
|
|
let data = res.data
|
|
|
if (data.Result == 'success') {
|
|
|
let alarm = data.Content
|
|
@@ -490,7 +491,7 @@ export default {
|
|
|
// let baseUrl = this.$store.state.baseUrl
|
|
|
// eslint-disable-next-line
|
|
|
var PSV = new PhotoSphereViewer({
|
|
|
- panorama: `/image-service/image-service/common/image_get?systemId=dataPlatform&key=${key}`,
|
|
|
+ panorama: `/dp-auxiliary/image-service/common/image_get?systemId=dataPlatform&key=${key}`,
|
|
|
container: div,
|
|
|
time_anim: false,
|
|
|
navbar: true,
|