修复广西联通的bug
This commit is contained in:
parent
ed8c265034
commit
a58bada03b
@ -52,4 +52,6 @@ export const editNoticeRemindSoundApi = data => post('xmgl/noticeRemindSound/edi
|
|||||||
// 编辑通知提示音信息
|
// 编辑通知提示音信息
|
||||||
export const deleteNoticeRemindSoundApi = data => post('xmgl/noticeRemindSound/delete', data);
|
export const deleteNoticeRemindSoundApi = data => post('xmgl/noticeRemindSound/delete', data);
|
||||||
//列表查询通知提示音信息
|
//列表查询通知提示音信息
|
||||||
export const selectNoticeRemindSoundApi = data => post('xmgl/noticeRemindSound/list', data);
|
export const selectNoticeRemindSoundApi = data => post('xmgl/noticeRemindSound/list', data);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -18,13 +18,18 @@ export default {
|
|||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
closePage(){
|
closePage(){
|
||||||
console.log(this.$route.path)
|
// console.log(this.$route.path)
|
||||||
if(this.$route.path.indexOf('/project/dataBoard') != -1 || this.$route.path.indexOf('/project/videoOverview') != -1 || this.$route.path.indexOf('/project/environmentalOverview') != -1 || this.$route.path.indexOf('/project/projectSummary') != -1 || this.$route.path.indexOf('/project/imgRanging') != -1 || this.$route.path.indexOf('/project/warningManage') != -1){
|
// getDockingUrlApi().then((res)=>{
|
||||||
// console.log(window.location.href.split('#/')[0]+'#/projectIndex')
|
// console.log('路径',res)
|
||||||
window.location.href = window.location.href.split('#/')[0] + '#/projectIndex'
|
// })
|
||||||
} else{
|
|
||||||
window.history.back()
|
// if(this.$route.path.indexOf('/project/dataBoard') != -1 || this.$route.path.indexOf('/project/videoOverview') != -1 || this.$route.path.indexOf('/project/environmentalOverview') != -1 || this.$route.path.indexOf('/project/projectSummary') != -1 || this.$route.path.indexOf('/project/imgRanging') != -1 || this.$route.path.indexOf('/project/warningManage') != -1){
|
||||||
}
|
// // console.log(window.location.href.split('#/')[0]+'#/projectIndex')
|
||||||
|
// // window.location.href = window.location.href.split('#/')[0] + '#/projectIndex' //注释
|
||||||
|
// } else{
|
||||||
|
// window.history.back()
|
||||||
|
// }
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|||||||
@ -104,6 +104,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import vhead from "@/components/header";
|
import vhead from "@/components/header";
|
||||||
|
import axios from 'axios'
|
||||||
import { getProjectDetail } from "@/assets/js/api/baseInfo.js";
|
import { getProjectDetail } from "@/assets/js/api/baseInfo.js";
|
||||||
import {
|
import {
|
||||||
getProjectModuleList,
|
getProjectModuleList,
|
||||||
@ -112,6 +113,10 @@ import {
|
|||||||
import {
|
import {
|
||||||
getSafeyHatSessionApi
|
getSafeyHatSessionApi
|
||||||
} from '@/assets/js/api/demo'
|
} from '@/assets/js/api/demo'
|
||||||
|
import {
|
||||||
|
getDockingUrlApi
|
||||||
|
} from "@/assets/js/api/configManage";
|
||||||
|
import Axios from "axios";
|
||||||
export default {
|
export default {
|
||||||
name: "projectIndex",
|
name: "projectIndex",
|
||||||
components: { vhead },
|
components: { vhead },
|
||||||
@ -165,27 +170,38 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
itemClick(item) {
|
itemClick(item) {
|
||||||
console.log(item)
|
console.log('item',item)
|
||||||
// console.log(item,this.$store.state.userInfo.account)
|
// console.log(item,this.$store.state.userInfo.account)
|
||||||
if(item.moduleName == "智能安全帽系统"){
|
if(item.moduleName == "智能安全帽系统"){
|
||||||
let NodeRSA = require("node-rsa");
|
this.getSafeyHatSession()
|
||||||
//请求参数
|
// 次数更改因为原来跳转的是星璇 无法显示 所以更改跳转到 润德 龙光同一个页面
|
||||||
let params = JSON.stringify({
|
// let NodeRSA = require("node-rsa");
|
||||||
account: this.$store.state.userInfo.account,
|
// //请求参数
|
||||||
page_flag: 3,
|
// let params = JSON.stringify({
|
||||||
});
|
// account: this.$store.state.userInfo.account,
|
||||||
//公钥
|
// page_flag: 3,
|
||||||
const pubKey = `
|
// });
|
||||||
-----BEGIN PUBLIC KEY-----
|
// //公钥
|
||||||
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDcmP0ug4NTHwW2oeHxheZjmYPDxVGFP770eECdLwRtaH0pPWvsXG6MSO/kCzgjEVEo1K1bvRxkkasQRu02fhI+gsZa8wvVeo3s4zJDA48Oj99JAXsx56/WN1RlNh+tsXcH9oQWy3gbX5cDkheuVZj8gsV7Ez59Ucj4e78zNJrUDwIDAQAB
|
// const pubKey = `
|
||||||
-----END PUBLIC KEY-----`;
|
// -----BEGIN PUBLIC KEY-----
|
||||||
|
// MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDcmP0ug4NTHwW2oeHxheZjmYPDxVGFP770eECdLwRtaH0pPWvsXG6MSO/kCzgjEVEo1K1bvRxkkasQRu02fhI+gsZa8wvVeo3s4zJDA48Oj99JAXsx56/WN1RlNh+tsXcH9oQWy3gbX5cDkheuVZj8gsV7Ez59Ucj4e78zNJrUDwIDAQAB
|
||||||
|
// -----END PUBLIC KEY-----`;
|
||||||
|
|
||||||
var publicKey = new NodeRSA(pubKey);
|
// var publicKey = new NodeRSA(pubKey);
|
||||||
var async_key = publicKey.encrypt(params, 'base64')
|
// var async_key = publicKey.encrypt(params, 'base64')
|
||||||
|
|
||||||
window.open("http://58.210.96.206:91/async_danzhou.html?async_key="+async_key)
|
// window.open("http://58.210.96.206:91/async_danzhou.html?async_key="+async_key)
|
||||||
// window.location.href = "http://58.210.96.206:91/async_danzhou.html?async_key="+async_key;
|
// // window.location.href = "http://58.210.96.206:91/async_danzhou.html?async_key="+async_key;
|
||||||
|
|
||||||
|
}
|
||||||
|
if(item.moduleName == "全景成像测距"){
|
||||||
|
axios({
|
||||||
|
method:"GET",
|
||||||
|
url:'http://139.9.66.234:18070/docking/url'
|
||||||
|
}).then((res)=>{
|
||||||
|
let toUrl = res.data[0]
|
||||||
|
window.open(toUrl)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
if(item.moduleName == "智能穿戴管理系统"){
|
if(item.moduleName == "智能穿戴管理系统"){
|
||||||
this.getSafeyHatSession()
|
this.getSafeyHatSession()
|
||||||
|
|||||||
@ -172,15 +172,14 @@
|
|||||||
<div class="dialog_content">
|
<div class="dialog_content">
|
||||||
<!-- default-expand-all -->
|
<!-- default-expand-all -->
|
||||||
<!-- <div>项目模块</div> -->
|
<!-- <div>项目模块</div> -->
|
||||||
<!-- <div>
|
<div>
|
||||||
<el-checkbox v-model="checkAll" @change="selectAll">全选</el-checkbox>
|
<el-checkbox v-model="checkAll" @change="selectAll"></el-checkbox>全选
|
||||||
</div> -->
|
</div>
|
||||||
<el-tree ref="tree"
|
<el-tree ref="tree"
|
||||||
node-key="authorityId"
|
node-key="authorityId"
|
||||||
:props="props"
|
:props="props"
|
||||||
:data="projectMenus"
|
:data="projectMenus"
|
||||||
show-checkbox
|
show-checkbox
|
||||||
|
|
||||||
@check-change="handleCheckChange"
|
@check-change="handleCheckChange"
|
||||||
>
|
>
|
||||||
<span class="custom-tree-node" slot-scope="{ node, data }">
|
<span class="custom-tree-node" slot-scope="{ node, data }">
|
||||||
@ -499,16 +498,14 @@ export default {
|
|||||||
// console.log('选择',this.$refs.tree.getCheckedKeys());
|
// console.log('选择',this.$refs.tree.getCheckedKeys());
|
||||||
},
|
},
|
||||||
// 全选反选
|
// 全选反选
|
||||||
// selectAll(){
|
selectAll(){
|
||||||
// if(this.checkAll){
|
// if(this.checkAll){
|
||||||
// console.log('111111',this.$refs)
|
// // console.log('111111',this.$refs)
|
||||||
// // this.$refs.tree.setCheckedNodes(this.projectMenus);
|
// this.$refs.tree.setCheckedNodes(this.projectMenus);
|
||||||
// }else{
|
// }else{
|
||||||
// this.$nextTick(()=>{
|
// this.$refs.tree.setCheckedKeys([])
|
||||||
// this.$refs.tree.setCheckedNodes([])
|
// }
|
||||||
// })
|
},
|
||||||
// }
|
|
||||||
// },
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -2,15 +2,15 @@
|
|||||||
<div class="fullHeight imgRanging">
|
<div class="fullHeight imgRanging">
|
||||||
<div class="imgBox">
|
<div class="imgBox">
|
||||||
<img src="@/assets/images/qjcx.png" alt="">
|
<img src="@/assets/images/qjcx.png" alt="">
|
||||||
<div class="closePage">
|
<div class="closePage" >
|
||||||
<closePage v-if="!isShowDialog"></closePage>
|
<!-- <closePage v-if="!isShowDialog"></closePage> -->
|
||||||
</div>
|
</div>
|
||||||
<button class="add" @click="addHandler"></button>
|
<!-- <button class="add" @click="addHandler"></button> -->
|
||||||
</div>
|
</div>
|
||||||
<div class="dialog" v-if="isShowDialog">
|
<!-- <div class="dialog" v-if="isShowDialog">
|
||||||
<img src="@/assets/images/qjcx2.png" alt="">
|
<img src="@/assets/images/qjcx2.png" alt="">
|
||||||
<button class="closeDialog" @click="closeDialog"></button>
|
<button class="closeDialog" @click="closeDialog"></button>
|
||||||
</div>
|
</div> -->
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user