Commit 9c831429 authored by wuquanxin's avatar wuquanxin

代码提交

parent 56710fce
...@@ -180,7 +180,8 @@ export default { ...@@ -180,7 +180,8 @@ export default {
new Date(new Date().setTime(new Date().getTime() - 3600 * 1000 * 24)), new Date(new Date().setTime(new Date().getTime() - 3600 * 1000 * 24)),
new Date(), new Date(),
]; ];
if (this.crossData.crossId) { // if (this.crossData.crossId) {
if (this.crossData.id) {
this.getData(); this.getData();
} }
}, },
......
...@@ -238,7 +238,8 @@ export default { ...@@ -238,7 +238,8 @@ export default {
new Date(), new Date(),
]; ];
} }
if (this.crossData.crossId) { // if (this.crossData.crossId) {
if (this.crossData.id) {
this.getData(); this.getData();
} }
}, },
...@@ -267,7 +268,8 @@ export default { ...@@ -267,7 +268,8 @@ export default {
if (this.locationType1 === "laneSort") { if (this.locationType1 === "laneSort") {
this.exportLoading = true this.exportLoading = true
exportLane({ exportLane({
crossId: this.crossData.crossId, // crossId: this.crossData.crossId,
crossId: this.crossData.id,
end: this.dateTimeRange[1].toLocaleString().replaceAll("/", "-"), end: this.dateTimeRange[1].toLocaleString().replaceAll("/", "-"),
start: this.dateTimeRange[0].toLocaleString().replaceAll("/", "-"), start: this.dateTimeRange[0].toLocaleString().replaceAll("/", "-"),
}).then((response) => { }).then((response) => {
...@@ -279,7 +281,8 @@ export default { ...@@ -279,7 +281,8 @@ export default {
else{ else{
this.exportLoading = true this.exportLoading = true
exportTurn({ exportTurn({
crossId: this.crossData.crossId, // crossId: this.crossData.crossId,
crossId: this.crossData.id,
end: this.dateTimeRange[1].toLocaleString().replaceAll("/", "-"), end: this.dateTimeRange[1].toLocaleString().replaceAll("/", "-"),
start: this.dateTimeRange[0].toLocaleString().replaceAll("/", "-"), start: this.dateTimeRange[0].toLocaleString().replaceAll("/", "-"),
}).then((response) => { }).then((response) => {
...@@ -689,7 +692,8 @@ export default { ...@@ -689,7 +692,8 @@ export default {
this.loading = true; this.loading = true;
this.indexOptionValue = ["allFlow"]; this.indexOptionValue = ["allFlow"];
let params = { let params = {
crossId: this.crossData.crossId, // crossId: this.crossData.crossId,
crossId: this.crossData.id,
end: this.dateTimeRange[1].toLocaleString().replaceAll("/", "-"), end: this.dateTimeRange[1].toLocaleString().replaceAll("/", "-"),
start: this.dateTimeRange[0].toLocaleString().replaceAll("/", "-"), start: this.dateTimeRange[0].toLocaleString().replaceAll("/", "-"),
granularity: "1h", granularity: "1h",
...@@ -724,7 +728,8 @@ export default { ...@@ -724,7 +728,8 @@ export default {
let haveFlag = false; let haveFlag = false;
for (let i = 0; i < a.length; i++) { for (let i = 0; i < a.length; i++) {
if ( if (
a[i].crossId === b.crossId && // a[i].crossId === b.crossId &&
a[i].id === b.id &&
a[i].fRidDir === b.fRidDir && a[i].fRidDir === b.fRidDir &&
a[i].windowEndTime === b.windowEndTime a[i].windowEndTime === b.windowEndTime
) { ) {
......
...@@ -288,7 +288,8 @@ export default { ...@@ -288,7 +288,8 @@ export default {
new Date(), new Date(),
]; ];
} }
if (this.crossData.crossId) { // if (this.crossData.crossId) {
if (this.crossData.id) {
this.getData(); this.getData();
} }
}, },
...@@ -334,7 +335,8 @@ export default { ...@@ -334,7 +335,8 @@ export default {
getData() { getData() {
// 停车事件 // 停车事件
getHoloEventList({ getHoloEventList({
crossId: this.crossData.crossId, // crossId: this.crossData.crossId,
crossId: this.crossData.id,
end: this.dateTimeRange[1].toLocaleString().replaceAll("/", "-"), end: this.dateTimeRange[1].toLocaleString().replaceAll("/", "-"),
start: this.dateTimeRange[0].toLocaleString().replaceAll("/", "-"), start: this.dateTimeRange[0].toLocaleString().replaceAll("/", "-"),
types: "401,", types: "401,",
...@@ -361,7 +363,8 @@ export default { ...@@ -361,7 +363,8 @@ export default {
// }); // });
// }); // });
overFlowEvent({ overFlowEvent({
crossId: this.crossData.crossId, // crossId: this.crossData.crossId,
crossId: this.crossData.id,
end: this.dateTimeRange[1].toLocaleString().replaceAll("/", "-"), end: this.dateTimeRange[1].toLocaleString().replaceAll("/", "-"),
overFlow: true, overFlow: true,
pageNum: 0, pageNum: 0,
......
...@@ -371,7 +371,8 @@ export default { ...@@ -371,7 +371,8 @@ export default {
this.exportLoading = true; this.exportLoading = true;
// excel导出下载 // excel导出下载
exportSnapshot({ exportSnapshot({
crossId: this.crossData.crossId, // crossId: this.crossData.crossId,
crossId: this.crossData.id,
end: this.dateTimeRange[1].toLocaleString().replaceAll("/", "-"), end: this.dateTimeRange[1].toLocaleString().replaceAll("/", "-"),
start: this.dateTimeRange[0].toLocaleString().replaceAll("/", "-"), start: this.dateTimeRange[0].toLocaleString().replaceAll("/", "-"),
laneId: this.value1.join(","), laneId: this.value1.join(","),
...@@ -385,7 +386,8 @@ export default { ...@@ -385,7 +386,8 @@ export default {
if (this.value1.length) { if (this.value1.length) {
this.indexOptionValue = ["queueLength"]; this.indexOptionValue = ["queueLength"];
let params = { let params = {
crossId: this.crossData.crossId, // crossId: this.crossData.crossId,
crossId: this.crossData.id,
end: this.dateTimeRange[1].toLocaleString().replaceAll("/", "-"), end: this.dateTimeRange[1].toLocaleString().replaceAll("/", "-"),
start: this.dateTimeRange[0].toLocaleString().replaceAll("/", "-"), start: this.dateTimeRange[0].toLocaleString().replaceAll("/", "-"),
laneId: this.value1.join(","), laneId: this.value1.join(","),
...@@ -532,9 +534,11 @@ export default { ...@@ -532,9 +534,11 @@ export default {
}, },
getData() { getData() {
this.value1 = []; this.value1 = [];
if (this.crossData.crossId) { // if (this.crossData.crossId) {
if (this.crossData.id) {
// todo 获取当前路口所有车道 根据车道 getData // todo 获取当前路口所有车道 根据车道 getData
initLaneSort({ crossId: this.crossData.crossId }).then((res) => { // initLaneSort({ crossId: this.crossData.crossId }).then((res) => {
initLaneSort({ crossId: this.crossData.id }).then((res) => {
this.options1 = res.content; this.options1 = res.content;
for (let item of this.options1) { for (let item of this.options1) {
this.value1.push(item.laneId); this.value1.push(item.laneId);
......
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