调整画面管理

This commit is contained in:
fan 2022-08-18 09:36:45 +08:00
parent da5f1a3fcf
commit b1638adeec
3 changed files with 2 additions and 5 deletions

View File

@ -69,8 +69,7 @@ export default {
const member = this.$store.state.training.memberData[val]; const member = this.$store.state.training.memberData[val];
const station = this.$store.getters['map/getDeviceByCode'](member.deviceCode); const station = this.$store.getters['map/getDeviceByCode'](member.deviceCode);
if (station) { if (station) {
const pictureLineCodeList = ['16']; if (this.$store.state.map.map && this.$store.state.map.map.pictureList) {
if (pictureLineCodeList.includes(this.$route.query.lineCode) && this.$store.state.map.map && this.$store.state.map.map.pictureList) {
const picture = this.$store.state.map.map.pictureList.find(picture => picture.stationCode === station.code && picture.type === 'chainStation'); const picture = this.$store.state.map.map.pictureList.find(picture => picture.stationCode === station.code && picture.type === 'chainStation');
if (picture) { if (picture) {
const mapDevice = this.$store.state.map.mapDevice; const mapDevice = this.$store.state.map.mapDevice;

View File

@ -440,7 +440,6 @@ export default {
this.$refs[type].doShow(); this.$refs[type].doShow();
}, },
stationRoleShow(deviceCode) { stationRoleShow(deviceCode) {
const pictureLineCodeList = ['16'];
if (this.lineCode === '14') { if (this.lineCode === '14') {
const list = []; const list = [];
const mapDevice = this.$store.state.map.mapDevice; const mapDevice = this.$store.state.map.mapDevice;
@ -450,7 +449,7 @@ export default {
} }
this.$jlmap.updateShowMode(list, '02'); this.$jlmap.updateShowMode(list, '02');
} }
if (pictureLineCodeList.includes(this.lineCode) && this.$store.state.map.map && this.$store.state.map.map.pictureList) { if (this.$store.state.map.map && this.$store.state.map.map.pictureList) {
const picture = this.$store.state.map.map.pictureList.find(picture => picture.stationCode === deviceCode && picture.type === 'chainStation'); const picture = this.$store.state.map.map.pictureList.find(picture => picture.stationCode === deviceCode && picture.type === 'chainStation');
if (picture) { if (picture) {
const mapDevice = this.$store.state.map.mapDevice; const mapDevice = this.$store.state.map.mapDevice;

View File

@ -442,7 +442,6 @@ export default {
text-align: right; text-align: right;
font-size: 14px; font-size: 14px;
color: #606266; color: #606266;
line-height: 40px;
padding: 0 12px 0 0; padding: 0 12px 0 0;
-webkit-box-sizing: border-box; -webkit-box-sizing: border-box;
box-sizing: border-box; box-sizing: border-box;