Commit d051e13e authored by co_dengxiongwen's avatar co_dengxiongwen

页面调整

parent d69b5a4b
...@@ -5,12 +5,12 @@ CONFIG.TITLE = '产业园区智慧消防系统' ...@@ -5,12 +5,12 @@ CONFIG.TITLE = '产业园区智慧消防系统'
// 网络请求公用地址 // 网络请求公用地址
CONFIG.requestPath = 'http://localhost:8046' // CONFIG.requestPath = 'http://localhost:8046'
// CONFIG.requestPath = 'http://59.110.43.122/:8046' CONFIG.requestPath = 'http://10.20.72.44:8046'
// 文件上传 // 文件上传
CONFIG.urlPath = 'http://59.110.43.122/' CONFIG.urlPath = 'http://10.20.72.44/'
// BIM // BIM
CONFIG.bimPath = 'http://10.20.2.98:8066/' CONFIG.bimPath = 'http://10.20.2.98:8066/'
...@@ -141,7 +141,7 @@ export default { ...@@ -141,7 +141,7 @@ export default {
let webpath = '' let webpath = ''
//wsuri.substring(0, wsuri.indexOf(':')) //wsuri.substring(0, wsuri.indexOf(':'))
if (wsuri != null && wsuri.indexOf(':') <= -1) { if (wsuri != null && wsuri.indexOf(':') <= -1) {
webpath = 'ws://api.crsh.cn:8091/websocket/1001' webpath = 'ws://10.20.72.44:8091/websocket/1001'
} else { } else {
webpath = webpath =
'ws:' + 'ws:' +
...@@ -274,7 +274,7 @@ export default { ...@@ -274,7 +274,7 @@ export default {
let webpath = '' let webpath = ''
//wsuri.substring(0, wsuri.indexOf(':')) //wsuri.substring(0, wsuri.indexOf(':'))
if (wsuri != null && wsuri.indexOf(':') <= -1) { if (wsuri != null && wsuri.indexOf(':') <= -1) {
webpath = 'ws://api.crsh.cn:8091/websocket/1002' webpath = 'ws://10.20.72.44:8091/websocket/1002'
} else { } else {
webpath = webpath =
'ws:' + 'ws:' +
......
...@@ -416,10 +416,11 @@ export default { ...@@ -416,10 +416,11 @@ export default {
}), }),
text: new Text({ text: new Text({
text: name, // 添加文字描述 text: name, // 添加文字描述
font: '14px font-size', // 设置字体大小 font: 'bold 14px font-size', // 设置字体大小
stroke: new Stroke({ color: 'white', width: 5 }), //设置文字背景
fill: new Fill({ fill: new Fill({
// 设置字体颜色 // 设置字体颜色
color: 'black' color: 'blue'
}), }),
offsetY: 30 // 设置文字偏移量 offsetY: 30 // 设置文字偏移量
}) })
......
...@@ -477,67 +477,66 @@ export default { ...@@ -477,67 +477,66 @@ export default {
}, },
clickPTZControl(ptz, dwStop, img) { clickPTZControl(ptz, dwStop, img) {
// console.log(this.camera) // console.log(this.camera)
if ( // if (
!this.camera || // !this.camera ||
(this.cameraCur.type !== 'ece0b8b2db27411886254e81134988a3' && // (this.cameraCur.type !== 'ece0b8b2db27411886254e81134988a3' &&
(ptz < 11 || ptz > 16)) // (ptz < 11 || ptz > 16))
) { // ) {
return // return
} // }
if (!isAuth('ol:demo:corona')) { // if (!isAuth('ol:demo:corona')) {
this.$message({ // this.$message({
type: 'warning', // type: 'warning',
message: '没有操作权限,请联系管理员', // message: '没有操作权限,请联系管理员',
duration: 1000 // duration: 1000
}) // })
return // return
} // }
// if (img && img != 'right') {
if (img && img != 'right') { // this.imgUrl = img
this.imgUrl = img // }
} // if (dwStop) {
if (dwStop) { // this.imgUrl = ''
this.imgUrl = '' // }
} // if (img && img == 'right') {
if (img && img == 'right') { // this['imgRightUrl' + ptz] = true
this['imgRightUrl' + ptz] = true // }
} // if (dwStop && img == 'right') {
if (dwStop && img == 'right') { // this['imgRightUrl' + ptz] = false
this['imgRightUrl' + ptz] = false // }
} // this.$http({
this.$http({ // url: this.$http.adornUrlEq('/camera/ptzControl'),
url: this.$http.adornUrlEq('/camera/ptzControl'), // method: 'post',
method: 'post', // data: {
data: { // resourceId: this.cameraCur.id,
resourceId: this.cameraCur.id, // stationId: this.cameraCur.stationId,
stationId: this.cameraCur.stationId, // userId: localStorage.getItem('userId'),
userId: localStorage.getItem('userId'), // levelType: 1,
levelType: 1, // controlType: 3,
controlType: 3, // ip: this.cameraCur.addressCode, //ip地址
ip: this.cameraCur.addressCode, //ip地址 // port: this.cameraCur.port, //端口
port: this.cameraCur.port, //端口 // username: this.cameraCur.username, //账号
username: this.cameraCur.username, //账号 // password: this.cameraCur.password, //密码
password: this.cameraCur.password, //密码 // channel: this.cameraCur.byx1, //通道
channel: this.cameraCur.byx1, //通道 // stream: 'main', //主码流
stream: 'main', //主码流 // dwPtzCommand: ptz, //云台控制命令
dwPtzCommand: ptz, //云台控制命令 // dwStop: dwStop //云台控制0开始和1结束
dwStop: dwStop //云台控制0开始和1结束 // }
} // }).then((data) => {
}).then((data) => { // if (data && data.code === 0) {
if (data && data.code === 0) { // if (dwStop == 0) {
if (dwStop == 0) { // //云台控制0开始和1结束
//云台控制0开始和1结束 // this.saveLog(1, ptz) // 执行结果 成功 1 失败 2
this.saveLog(1, ptz) // 执行结果 成功 1 失败 2 // this.$message.success(data.msg)
this.$message.success(data.msg) // }
} // } else {
} else { // if (dwStop == 0) {
if (dwStop == 0) { // //云台控制0开始和1结束
//云台控制0开始和1结束 // this.saveLog(2, ptz) // 执行结果 成功 1 失败 2
this.saveLog(2, ptz) // 执行结果 成功 1 失败 2 // this.$message.error(data.msg)
this.$message.error(data.msg) // }
} // }
} // })
})
}, },
//调用日志保存记录操作指令 //调用日志保存记录操作指令
saveLog(result, ptz) { saveLog(result, ptz) {
......
...@@ -257,67 +257,67 @@ export default { ...@@ -257,67 +257,67 @@ export default {
this.$emit('closeQ') this.$emit('closeQ')
}, },
clickPTZControl(ptz, dwStop, img) { clickPTZControl(ptz, dwStop, img) {
if ( // if (
this.dataForm.type !== 'ece0b8b2db27411886254e81134988a3' && // this.dataForm.type !== 'ece0b8b2db27411886254e81134988a3' &&
(ptz < 11 || ptz > 16) // (ptz < 11 || ptz > 16)
) { // ) {
return // return
} // }
if (!isAuth('ol:demo:corona')) { // if (!isAuth('ol:demo:corona')) {
this.$message({ // this.$message({
type: 'warning', // type: 'warning',
message: '没有操作权限,请联系管理员', // message: '没有操作权限,请联系管理员',
duration: 1000 // duration: 1000
}) // })
return // return
} // }
if (img && img != 'right') { // if (img && img != 'right') {
this.imgUrl = img // this.imgUrl = img
} // }
if (dwStop) { // if (dwStop) {
this.imgUrl = '' // this.imgUrl = ''
} // }
if (img && img == 'right') { // if (img && img == 'right') {
this['imgRightUrl' + ptz] = true // this['imgRightUrl' + ptz] = true
} // }
if (dwStop && img == 'right') { // if (dwStop && img == 'right') {
this['imgRightUrl' + ptz] = false // this['imgRightUrl' + ptz] = false
} // }
this.$http({ // this.$http({
url: this.$http.adornUrlEq('/camera/ptzControl'), // url: this.$http.adornUrlEq('/camera/ptzControl'),
method: 'post', // method: 'post',
data: { // data: {
resourceId: this.dataForm.id, // resourceId: this.dataForm.id,
stationId: this.dataForm.stationId, // stationId: this.dataForm.stationId,
userId: localStorage.getItem('userId'), // userId: localStorage.getItem('userId'),
levelType: 1, // levelType: 1,
controlType: 3, // controlType: 3,
ip: this.dataForm.addressCode, //ip地址 // ip: this.dataForm.addressCode, //ip地址
port: this.dataForm.port, //端口 // port: this.dataForm.port, //端口
username: this.dataForm.username, //账号 // username: this.dataForm.username, //账号
password: this.dataForm.password, //密码 // password: this.dataForm.password, //密码
channel: this.dataForm.byx1, //通道 // channel: this.dataForm.byx1, //通道
stream: 'main', //主码流 // stream: 'main', //主码流
dwPtzCommand: ptz, //云台控制命令 // dwPtzCommand: ptz, //云台控制命令
dwStop: dwStop //云台控制0开始和1结束 // dwStop: dwStop //云台控制0开始和1结束
} // }
}).then((data) => { // }).then((data) => {
// console.log(11) // // console.log(11)
// console.log(data) // // console.log(data)
if (data && data.code === 0) { // if (data && data.code === 0) {
if (dwStop == 0) { // if (dwStop == 0) {
//云台控制0开始和1结束 // //云台控制0开始和1结束
this.saveLog(1, ptz) // 执行结果 成功 1 失败 2 // this.saveLog(1, ptz) // 执行结果 成功 1 失败 2
this.$message.success(data.msg) // this.$message.success(data.msg)
} // }
} else { // } else {
if (dwStop == 0) { // if (dwStop == 0) {
//云台控制0开始和1结束 // //云台控制0开始和1结束
this.saveLog(2, ptz) // 执行结果 成功 1 失败 2 // this.saveLog(2, ptz) // 执行结果 成功 1 失败 2
this.$message.error(data.msg) // this.$message.error(data.msg)
} // }
} // }
}) // })
}, },
//调用日志保存记录操作指令 //调用日志保存记录操作指令
saveLog(result, ptz) { saveLog(result, ptz) {
......
...@@ -527,10 +527,11 @@ export default { ...@@ -527,10 +527,11 @@ export default {
}), }),
text: new Text({ text: new Text({
text: name, // 添加文字描述 text: name, // 添加文字描述
font: '14px font-size', // 设置字体大小 font: 'bold 14px font-size', // 设置字体大小
stroke: new Stroke({ color: 'white', width: 5 }), //设置文字背景
fill: new Fill({ fill: new Fill({
// 设置字体颜色 // 设置字体颜色
color: 'black' color: 'blue'
}), }),
offsetY: 30 // 设置文字偏移量 offsetY: 30 // 设置文字偏移量
}) })
......
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