Commit 320c5512 authored by jiangjiaxu's avatar jiangjiaxu

modify config

parent b96ffeba
const address = 'http://152.136.233.116:8083/roadlinks/getCapitalImg?imgName=';
// const address = 'http://152.136.233.116:8083/roadlinks/';
// const address = '/roadlinks/';
const address = 'http://127.0.0.1:8088/roadlinks/';
// const address = 'http://vmax.corp.roadlinks.cn:8088/roadlinks/';
// const address = 'http://127.0.0.1:8088/roadlinks/';
// const address = 'http://193.112.197.170:8080/roadlinks/';
// const address = 'http://172.16.40.196:29980/roadlinks/';
const rootAddress = 'http://152.136.233.116:8083/roadlinks/';
// const rootAddress = 'http://127.0.0.1:8088/roadlinks/';
// const rootAddress = '/roadlinks/';
const photoAddress = 'http://106.52.130.113:9088/';
const imgAddress = 'http://152.136.233.116:8083/roadlinks/';
const imgApi = 'http://152.136.233.116:8083/roadlinks/getCapitalImg?imgName=';
const photoDataAddress = 'http://106.52.130.113:9088/';
export {rootAddress,address};
export { address,photoAddress,imgApi,imgAddress };
......@@ -90,7 +90,7 @@ import axios from 'axios';
import { Message } from 'element-ui';
import echarts from 'echarts';
import moment from 'moment';
import { rootAddress, photoDataAddress, address } from '../config';
import { address, photoAddress } from '../config';
export default {
name: 'detail',
......@@ -129,7 +129,7 @@ export default {
linkPic(index, row) {
this.getCurrentDate();
var photoDate = row.finalOnlineTime ? row.finalOnlineTime : this.currentdate;
window.open(photoDataAddress + photoDate + '/' + row.channelCode + '/' + row.code,'_blank');
window.open(photoAddress + photoDate + '/' + row.channelCode + '/' + row.code,'_blank');
},
getCurrentDate() {
var date = new Date();
......@@ -241,7 +241,7 @@ export default {
console.log(this.currentPage) //点击第几页
},
getAllCapitals() {
axios.post(rootAddress + `getAllCapitals`, {
axios.post(address + `getAllCapitals`, {
}).then((response) => {
if (response.data.code === 200) {
......@@ -279,7 +279,7 @@ export default {
}
});
}
axios.post(rootAddress + `getCapitalDetails`, {
axios.post(address + `getCapitalDetails`, {
capitalName: capitalName
}).then((response) => {
if (response.data.code === 200) {
......@@ -330,7 +330,7 @@ export default {
this.filters.channel = '';
}
axios.post(rootAddress + `getAllEquipments`, {
axios.post(address + `getAllEquipments`, {
code: this.filters.equipmentNo,
channelId: this.filters.channel,
plateNo: this.filters.plateNo,
......
......@@ -41,7 +41,7 @@ import axios from 'axios';
import { Message } from 'element-ui';
import { constants } from 'fs';
import Cookies from 'js-cookie';
import { address, rootAddress } from '../config.js';
import { address } from '../config.js';
export default {
name: 'userlogin',
......@@ -107,7 +107,7 @@ export default {
this.$refs.loginForm.validate((valid) => {
if (valid) {
// 路由跳转到任务页面
axios.post(rootAddress + 'login', {
axios.post(address + 'login', {
username: this.loginForm.username,
password: this.loginForm.password,
})
......
......@@ -74,7 +74,7 @@ import axios from 'axios';
import { Message } from 'element-ui';
import echarts from 'echarts';
import moment from 'moment';
import { rootAddress, address } from '../config';
import { address } from '../config';
export default {
name: 'overview',
......@@ -212,7 +212,7 @@ export default {
},
getAllCapitals() {
axios.post(rootAddress + `getAllCapitals`, {
axios.post(address + `getAllCapitals`, {
}).then((response) => {
if (response.data.code === 200) {
......@@ -302,7 +302,7 @@ export default {
this.filters.channel = '';
}
axios.post(rootAddress + `getAllEquipments`, {
axios.post(address + `getAllEquipments`, {
code: this.filters.equipmentNo,
channelId: this.filters.channel,
plateNo: this.filters.plateNo,
......
......@@ -35,7 +35,7 @@
import axios from 'axios';
import { Message } from 'element-ui';
import { setTimeout } from 'timers';
import { rootAddress, address} from '../config.js';
import { address } from '../config';
export default {
data() {
......@@ -99,7 +99,7 @@ export default {
this.$refs[formName].validate((valid) => {
if (valid) {
console.log(this.ruleForm2.user + this.ruleForm2.pass);
axios.post( rootAddress + 'register', {
axios.post( address + 'register', {
username: this.ruleForm2.user,
password: this.ruleForm2.pass,
email: this.ruleForm2.mailAddress,
......
......@@ -284,7 +284,7 @@ import axios from 'axios';
import { Message } from 'element-ui';
import gcoord from 'gcoord';
import moment from 'moment';
import { address, rootAddress } from '../config';
import { imgApi,imgAddress, address,photoAddress } from '../config';
import { export_json_to_excel } from '@/excel/Export2Excel'
export default {
......@@ -499,7 +499,7 @@ export default {
let exportImgs = [];
this.allImgs.forEach((item) => {
let capital = item.content.split('|');
exportImgs.push({number: item.number + '', url: address + item.url.split("=")[1], capitalName: capital[0], capitalStatus: capital[1], position: capital[2]});
exportImgs.push({number: item.number + '', url: imgApi + item.url.split("=")[1], capitalName: capital[0], capitalStatus: capital[1], position: capital[2]});
});
require.ensure([], () => {
//tHeader为存放excel表头标题的数组
......@@ -582,7 +582,7 @@ export default {
this.getMapBounds(e);
},
queryAllEquipment() {
axios.post(rootAddress + `queryAllEquipment`, {
axios.post(address + `queryAllEquipment`, {
}).then((response) => {
if (response.data.code === 200) {
......@@ -620,7 +620,7 @@ export default {
});
}
axios.post(rootAddress + `getInspectResult`, {
axios.post(address + `getInspectResult`, {
startTime: this.filters.dateTime[0],
endTime: this.filters.dateTime[1],
equipment: equipmentCode
......@@ -663,7 +663,7 @@ export default {
}
});
this.allPoints.push({lng: result[0], lat: result[1], markerAnim: '', url: info.status == 1 || info.status == 3 ? require('../assets/img/map-marker_orange.png') : require('../assets/img/jingbao_red.png'), status: info.status, content: this.no, title: '', titleList: ['资产类型:' + info.type2,'资产状态:' + (info.status == 1 ? '正常' : (info.status == 2 ? '异常' : '新增')), '位置:' + info.position]});
this.allImgs.push({url: rootAddress + 'getCapitalImg?imgPath=' + info.imagePath, content: info.info + ' | ' + (info.status == 1 ? '正常' : (info.status == 2 ? '异常' : '新增')) + ' | ' + info.position, number: this.no ,id: 'imageCard' + this.no, vector: info.vector});
this.allImgs.push({url: imgAddress + 'getCapitalImg?imgPath=' + info.imagePath, content: info.info + ' | ' + (info.status == 1 ? '正常' : (info.status == 2 ? '异常' : '新增')) + ' | ' + info.position, number: this.no ,id: 'imageCard' + this.no, vector: info.vector});
}
});
}
......@@ -779,7 +779,7 @@ export default {
}
});
}
axios.post(rootAddress + `getCapitalDetails`, {
axios.post(address + `getCapitalDetails`, {
capitalName: capitalName
}).then((response) => {
if (response.data.code === 200) {
......@@ -798,7 +798,7 @@ export default {
);
this.no = ++this.no;
this.allPoints.push({lng: result[0], lat: result[1], markerAnim: '', url: require('../assets/img/map-marker_orange.png'), content: this.no, title: '', titleList: ['资产类型:' + val.capitalType,'资产名称:' + val.capitalName ,'资产状态:正常', '位置:' + val.position]});
this.allImgs.push({url: rootAddress + 'getCapitalImg?imgName=' + val.imgName, content: val.capitalName + ' | 正常 | ' + val.position, number: this.no ,id: 'imageCard' + this.no});
this.allImgs.push({url: imgAddress + 'getCapitalImg?imgName=' + val.imgName, content: val.capitalName + ' | 正常 | ' + val.position, number: this.no ,id: 'imageCard' + this.no});
}
});
......@@ -872,7 +872,7 @@ export default {
level += "," + item;
}
});
axios.post(rootAddress + `generateTask`, {
axios.post(address + `generateTask`, {
area: this.form.region,
startTime: this.value4[0],
endTime: this.value4[1],
......
......@@ -204,7 +204,7 @@ import axios from 'axios';
import { Message } from 'element-ui';
import echarts from 'echarts';
import moment from 'moment';
import { rootAddress, address } from '../config';
import { address } from '../config';
import { export_json_to_excel } from '@/excel/Export2Excel';
import elDragDialog from "@/components/el-drag-dialog";
......@@ -392,7 +392,7 @@ export default {
},
getImageGroupsByCon(startTime, endTime, equipment) {
axios.post(rootAddress + `getImageGroupsByCon`, {
axios.post(address + `getImageGroupsByCon`, {
startTimeMill: startTime,
endTimeMill: endTime,
equipment: equipment
......@@ -426,7 +426,7 @@ export default {
this.filters.dateTime[0] = moment((new Date()).setTime((new Date()).getTime() - 3600 * 1000 * 24)).format("YYYY-MM-DD") + ' 00:00:00';
this.filters.dateTime[1] = moment((new Date()).setTime((new Date()).getTime() - 3600 * 1000 * 24)).format("YYYY-MM-DD") + ' 23:59:59';
}
axios.post(rootAddress + `getImageGroups`, {
axios.post(address + `getImageGroups`, {
beginTime: this.filters.dateTime[0],
endTime: this.filters.dateTime[1],
capitalType: this.filters.capitalType,
......@@ -481,7 +481,7 @@ export default {
console.log(this.currentPage) //点击第几页
},
getAllCapitals() {
axios.post(rootAddress + `getAllCapitals`, {
axios.post(address + `getAllCapitals`, {
}).then((response) => {
if (response.data.code === 200) {
......@@ -519,7 +519,7 @@ export default {
}
});
}
axios.post(rootAddress + `getCapitalDetails`, {
axios.post(address + `getCapitalDetails`, {
capitalName: capitalName
}).then((response) => {
if (response.data.code === 200) {
......@@ -561,7 +561,7 @@ export default {
},
showPicture(index, row) {
this.imgContent = row.info + "|" + row.status + "|" + row.position;
this.bigImgUrl = rootAddress + "getCapitalImg?imgPath=" + row.imagePath;
this.bigImgUrl = address + "getCapitalImg?imgPath=" + row.imagePath;
let vectorData = JSON.parse(row.vector);
if (vectorData && vectorData.location) {
let point = vectorData.location;
......@@ -590,7 +590,7 @@ export default {
this.dialogVisible1 = false;
this.dialogVisible2 = false;
this.tableData[this.tableIndex].status = "正常";
axios.post(rootAddress + `updateImageStatus`, {
axios.post(address + `updateImageStatus`, {
id: this.groupId
}).then((response) => {
if (response.data.code === 200) {
......
......@@ -223,7 +223,7 @@ import axios from 'axios';
import { Message } from 'element-ui';
import gcoord from 'gcoord';
import moment from 'moment';
import { rootAddress, address } from '../config';
import { address } from '../config';
import { export_json_to_excel } from '@/excel/Export2Excel'
export default {
......@@ -331,14 +331,14 @@ export default {
this.infos.forEach((item) => {
if(item.lng == e.point.lng && item.lat == e.point.lat){
// 根据坐标信息获取图片
this.bigImgUrl = rootAddress + 'getTrajectImg?channel=' + item.channel + '&equipment=' + item.plateNo + '&createTime=' + item.date + ' ' + item.time;//this.getTrajectImg(item.channel, item.plateNo, item.date + ' ' + item.time);
this.bigImgUrl = address + 'getTrajectImg?channel=' + item.channel + '&equipment=' + item.plateNo + '&createTime=' + item.date + ' ' + item.time;//this.getTrajectImg(item.channel, item.plateNo, item.date + ' ' + item.time);
}
});
// this.bigImgUrl = require('../assets/img/17615.jpg');
this.isShowPicture = true;
},
getTrajectImg(channel, plateNo, createTime){
axios.post(rootAddress + `getTrajectImg`, {
axios.post(address + `getTrajectImg`, {
channel: channel,
equipment: plateNo,
createTime: createTime
......@@ -368,7 +368,7 @@ export default {
});
},
queryAllEquipment() {
axios.post(rootAddress + `queryAllEquipment`, {
axios.post(address + `queryAllEquipment`, {
}).then((response) => {
if (response.data.code === 200) {
......@@ -407,7 +407,7 @@ export default {
});
}
axios.post(rootAddress + `getTravel`, {
axios.post(address + `getTravel`, {
startTime: this.filters.dateTime[0],
endTime: this.filters.dateTime[1],
equipment: equipmentCode
......
......@@ -135,7 +135,7 @@ import axios from 'axios';
import { Message } from 'element-ui';
import echarts from 'echarts';
import moment from 'moment';
import {rootAddress, address} from '../config';
import { address } from '../config';
export default {
name: 'detail',
......@@ -170,7 +170,7 @@ export default {
},
methods: {
queryAllEquipment() {
axios.post(rootAddress + `queryAllEquipment`, {
axios.post(address + `queryAllEquipment`, {
}).then((response) => {
if (response.data.code === 200) {
......@@ -207,7 +207,7 @@ export default {
}
});
}
axios.post(rootAddress + `queryVideos`, {
axios.post(address + `queryVideos`, {
startTime: this.filters.dateTime[0],
endTime: this.filters.dateTime[1],
equipment: equipmentCode
......
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