iscs报错修改

This commit is contained in:
fan 2021-03-11 10:58:03 +08:00
parent 4d8f116f4d
commit b620e0f3a3
4 changed files with 34 additions and 9 deletions

View File

@ -80,7 +80,6 @@ export default {
methods: {
async getDetail(mode, system, part) {
const params = {
// lineCode: this.$route.query.lineCode,
mapId:this.$route.query.mapId,
totalSystem: mode,
system: system,

View File

@ -356,7 +356,14 @@ export default {
this.selectChildIndex = 0;
if (item.children.length) {
this.type = item.children[0].type;
const query = {currentSystem:this.currentSystem, stationName: this.stationList[this.selectStationIndex].name, stationId: this.stationList[this.selectStationIndex].id, group: this.group, lineCode:this.lineCode };
const query = {
currentSystem:this.currentSystem,
stationName: this.stationList[this.selectStationIndex].name,
stationId: this.stationList[this.selectStationIndex].id,
group: this.group,
lineCode:this.lineCode,
mapId: this.$route.query.mapId
};
if (this.projectDevice) {
query.projectDevice = this.$route.query.projectDevice;
query.type = this.$route.query.type;
@ -368,7 +375,14 @@ export default {
selectChildren(item, index, isReplace = false) { //
this.selectChildIndex = index;
this.type = item.type;
const query = {currentSystem: this.currentSystem, stationName: this.stationList[this.selectStationIndex].name, stationId: this.stationList[this.selectStationIndex].id, group: this.group, lineCode:this.lineCode };
const query = {
currentSystem: this.currentSystem,
stationName: this.stationList[this.selectStationIndex].name,
stationId: this.stationList[this.selectStationIndex].id,
group: this.group,
lineCode:this.lineCode,
mapId: this.$route.query.mapId
};
if (this.projectDevice) {
query.projectDevice = this.$route.query.projectDevice;
query.type = this.$route.query.type;
@ -385,7 +399,14 @@ export default {
if (!this.type) {
this.type = this.$route.params.mode;
}
const query = {currentSystem: this.currentSystem, stationName: this.stationList[this.selectStationIndex].name, stationId: this.stationList[this.selectStationIndex].id, group: this.group, lineCode:this.lineCode };
const query = {
currentSystem: this.currentSystem,
stationName: this.stationList[this.selectStationIndex].name,
stationId: this.stationList[this.selectStationIndex].id,
group: this.group,
lineCode:this.lineCode,
mapId: this.$route.query.mapId
};
if (this.projectDevice) {
query.projectDevice = this.$route.query.projectDevice;
query.type = this.$route.query.type;

View File

@ -334,18 +334,18 @@ export default {
this.selectChildIndex = 0;
if (item.children.length) {
this.type = item.children[0].type;
this.$router.push({ path: `/iscs/system/config/${item.children[0].type}`, query: {currentSystem:this.currentSystem, stationName: this.stationList[this.selectStationIndex].name, stationId: this.stationList[this.selectStationIndex].id } });
this.$router.push({ path: `/iscs/system/config/${item.children[0].type}`, query: {currentSystem:this.currentSystem, stationName: this.stationList[this.selectStationIndex].name, stationId: this.stationList[this.selectStationIndex].id, mapId: this.$route.query.mapId} });
}
}
},
selectChildren(item, index) { //
this.selectChildIndex = index;
this.type = item.type;
this.$router.push({ path: `/iscs/system/config/${item.type}`, query: {currentSystem:this.currentSystem, stationName: this.stationList[this.selectStationIndex].name, stationId: this.stationList[this.selectStationIndex].id } });
this.$router.push({ path: `/iscs/system/config/${item.type}`, query: {currentSystem:this.currentSystem, stationName: this.stationList[this.selectStationIndex].name, stationId: this.stationList[this.selectStationIndex].id, mapId: this.$route.query.mapId } });
},
selectStation(item, index) { //
this.selectStationIndex = index;
this.$router.push({ path: `/iscs/system/config/${this.type}`, query: {currentSystem:this.currentSystem, stationName: this.stationList[this.selectStationIndex].name, stationId: this.stationList[this.selectStationIndex].id } });
this.$router.push({ path: `/iscs/system/config/${this.type}`, query: {currentSystem:this.currentSystem, stationName: this.stationList[this.selectStationIndex].name, stationId: this.stationList[this.selectStationIndex].id, mapId: this.$route.query.mapId } });
},
back() {
this.$router.push({ path: `/design/home` });

View File

@ -438,8 +438,13 @@ export default {
if (station) {
stationName = station.name;
}
const query = {stationName: stationName, stationId: this.selectStation, group: this.group, mapId: this.$route.query.mapId, noPreLogout:this.$route.query.noPreLogout };
const query = {
stationName: stationName,
stationId: this.selectStation,
group: this.group,
mapId: this.$route.query.mapId,
noPreLogout:this.$route.query.noPreLogout
};
if (isReplace) {
this.$router.replace({ path: `/displayIscs/system/stationConfig/${type}`, query: query });
} else {