iscs报错修改
This commit is contained in:
parent
4d8f116f4d
commit
b620e0f3a3
@ -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,
|
||||
|
@ -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;
|
||||
|
@ -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` });
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user