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