20230224
This commit is contained in:
parent
780ae53f5a
commit
d7d816578a
|
@ -7,31 +7,31 @@ export default {
|
|||
// addFigure: "http://172.16.1.22:8080/api/AddJianktx",
|
||||
// //编辑图形名称
|
||||
// editFigure: "http://172.16.1.22:8080/api/EditTuxmc",
|
||||
dataUrl: 'http://172.16.1.168:5000/api/AddShipjk',
|
||||
getSpareElementOrder: 'http://172.16.1.168:5000/api/Upload',
|
||||
postSetQuanjsz: 'http://172.16.1.168:5000/api/SetQuanjsz',
|
||||
saveRoleApi: 'http://172.16.1.168:5000/api/AddZhangh',
|
||||
saveSetFtppz: 'http://172.16.1.168:5000/api/SetFtppz',
|
||||
//编辑保存组件弹窗传参
|
||||
editComponent: 'http://172.16.1.22:8080/api/SetMonqjkzjcs',
|
||||
//保存主机名称
|
||||
editRoleApi: 'http://172.16.1.168:5000/api/EditZhangh',
|
||||
//新增图形接口
|
||||
addFigure: 'http://172.16.1.168:5000/api/AddJianktx',
|
||||
//编辑图形名称
|
||||
editFigure: 'http://172.16.1.168:5000/api/EditTuxmc',
|
||||
//编辑保存组件弹窗传参
|
||||
setHostName: 'http://172.16.1.168:5000/api/SetHostName',
|
||||
setHostTime: 'http://172.16.1.168:5000/api/SetHostTime'
|
||||
// dataUrl: 'http://172.16.1.168:5000/api/AddShipjk',
|
||||
// getSpareElementOrder: 'http://172.16.1.168:5000/api/Upload',
|
||||
// postSetQuanjsz: 'http://172.16.1.168:5000/api/SetQuanjsz',
|
||||
// saveRoleApi: 'http://172.16.1.168:5000/api/AddZhangh',
|
||||
// saveSetFtppz: 'http://172.16.1.168:5000/api/SetFtppz',
|
||||
// //编辑保存组件弹窗传参
|
||||
// editComponent: 'http://172.16.1.168:5000/api/SetMonqjkzjcs',
|
||||
// //保存主机名称
|
||||
// editRoleApi: 'http://172.16.1.168:5000/api/EditZhangh',
|
||||
// //新增图形接口
|
||||
// addFigure: 'http://172.16.1.168:5000/api/AddJianktx',
|
||||
// //编辑图形名称
|
||||
// editFigure: 'http://172.16.1.168:5000/api/EditTuxmc',
|
||||
// //编辑保存组件弹窗传参
|
||||
// setHostName: 'http://172.16.1.168:5000/api/SetHostName',
|
||||
// setHostTime: 'http://172.16.1.168:5000/api/SetHostTime'
|
||||
|
||||
// `http://${ipUurl}:5000/api/AddShipjk`
|
||||
// dataUrl: `http://${ipUurl}:5000/api/AddShipjk`,
|
||||
// getSpareElementOrder: `http://${ipUurl}:5000/api/Upload`,
|
||||
// postSetQuanjsz: `http://${ipUurl}:5000/api/SetQuanjsz`,
|
||||
// //新增图形接口
|
||||
// addFigure: `http://${ipUurl}:5000/api/AddJianktx`,
|
||||
// //编辑图形名称
|
||||
// editFigure: `http://${ipUurl}:5000/api/EditTuxmc`,
|
||||
// //编辑保存组件弹窗传参
|
||||
// editComponent: `http://${ipUurl}:5000/api/SetMonqjkzjcs`,
|
||||
dataUrl: `http://${ipUurl}:5000/api/AddShipjk`,
|
||||
getSpareElementOrder: `http://${ipUurl}:5000/api/Upload`,
|
||||
postSetQuanjsz: `http://${ipUurl}:5000/api/SetQuanjsz`,
|
||||
//新增图形接口
|
||||
addFigure: `http://${ipUurl}:5000/api/AddJianktx`,
|
||||
//编辑图形名称
|
||||
editFigure: `http://${ipUurl}:5000/api/EditTuxmc`,
|
||||
//编辑保存组件弹窗传参
|
||||
editComponent: `http://${ipUurl}:5000/api/SetMonqjkzjcs`,
|
||||
};
|
||||
|
|
|
@ -37,8 +37,8 @@ class mqttHandle {
|
|||
const { host, port, endpoint, ...options } = this.connect;
|
||||
console.log("this.connect.host",this.connect.host)
|
||||
// const connectUrl = `ws://${this.connect.host}:${this.connect.port}${this.connect.endpoint}`;
|
||||
const connectUrl = 'ws://172.16.1.168:10087/';
|
||||
// const connectUrl = `ws://${this.connect.host}:${this.connect.port}`;
|
||||
// const connectUrl = 'ws://172.16.1.168:10087/';
|
||||
const connectUrl = `ws://${this.connect.host}:${this.connect.port}`;
|
||||
// if (!client.connected) {
|
||||
// client.on('connect', function () {
|
||||
// console.log('连接成功')
|
||||
|
|
|
@ -737,8 +737,8 @@ export default {
|
|||
OnSceneload(newV) {
|
||||
var ip = window.location.host;
|
||||
this.ipData = 'http://' + ip.split(':')[0] + ':5000';
|
||||
this.$refs.analysisWeb.contentWindow.getIpData('http://172.16.1.168:5000');
|
||||
// this.$refs.analysisWeb.contentWindow.getDianwei(this.$route.query.id);
|
||||
// this.$refs.analysisWeb.contentWindow.getIpData('http://172.16.1.168:5000');
|
||||
this.$refs.analysisWeb.contentWindow.getDianwei(this.$route.query.id);
|
||||
this.unityDone = true;
|
||||
},
|
||||
handleDeleteDian(row, idx) {
|
||||
|
|
|
@ -254,10 +254,13 @@ export default {
|
|||
// console.log(_this.$refs.typeChartRef[i], '触发接收的表格数据');
|
||||
let item = _this.$refs.typeChartRef[i]
|
||||
_this.$refs.typeChartRef[i].$refs.lineChartRef.drawLine(_this.$refs.typeChartRef[i].dataArr,_this.$refs.typeChartRef[i].componentName.split('_')[0])
|
||||
if(item.componentName.split('_')[0]=="类型"){
|
||||
if(item.componentName.split('_')[0]=="类型"&&item.$refs.barChartRef){
|
||||
|
||||
// 数据改变重新渲染柱状图
|
||||
item.$refs.barChartRef.drawBar(item.dataArr[0])
|
||||
// 数据改变重新渲染饼图
|
||||
|
||||
}else if(item.componentName.split('_')[0]=="类型"&&item.$refs.pieChartRef){
|
||||
// // 数据改变重新渲染饼图
|
||||
item.$refs.pieChartRef.drawPie(item.dataArr[0])
|
||||
}
|
||||
}
|
||||
|
|
|
@ -267,7 +267,7 @@ export default {
|
|||
presentation: [],
|
||||
startValue: '',
|
||||
timeMode: '',
|
||||
type: [],
|
||||
type: ['机动车', '非机动车', '行人'],
|
||||
startSection: [],
|
||||
endSection: [],
|
||||
componentType: '',
|
||||
|
@ -655,8 +655,8 @@ export default {
|
|||
OnSceneN() {
|
||||
var ip = window.location.host;
|
||||
this.ipData = 'http://' + ip.split(':')[0] + ':5000';
|
||||
// document.getElementById('mapModule').contentWindow.getIpData(this.ipData);
|
||||
document.getElementById('mapModule').contentWindow.getIpData('http://172.16.1.168:5000');
|
||||
document.getElementById('mapModule').contentWindow.getIpData(this.ipData);
|
||||
// document.getElementById('mapModule').contentWindow.getIpData('http://172.16.1.168:5000');
|
||||
if (this.$route.query.type == '离线视频') {
|
||||
document.getElementById('mapModule').contentWindow.lixianVideo(JSON.stringify(this.analysis));
|
||||
}
|
||||
|
@ -763,7 +763,7 @@ export default {
|
|||
arr = res.data.data.type.split(',');
|
||||
this.componentForm.type = arr;
|
||||
} else {
|
||||
this.componentForm.type = [];
|
||||
this.componentForm.type = ['机动车', '非机动车', '行人'];
|
||||
}
|
||||
console.log('this.componentForm', this.componentForm);
|
||||
}
|
||||
|
@ -863,7 +863,7 @@ export default {
|
|||
arr = res.data.data.type.split(',');
|
||||
this.componentForm.type = arr;
|
||||
} else {
|
||||
this.componentForm.type = [];
|
||||
// this.componentForm.type = ['机动车', '非机动车', '行人'];
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue