西铁院title、logo修改,综合演练房间角色调整后,角色顺序不再变化
This commit is contained in:
parent
0217650979
commit
50aee38b48
BIN
src/assets/logo_xty.png
Normal file
BIN
src/assets/logo_xty.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 97 KiB |
@ -7,18 +7,25 @@
|
||||
</template>
|
||||
<script>
|
||||
import logoImg from '@/assets/logo_changan.png';
|
||||
import logoImgXty from '@/assets/logo_xty.png';
|
||||
import { getSessionStorage } from '@/utils/auth';
|
||||
import { loginTitle } from '@/scripts/ConstDic';
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
logoImg: logoImg,
|
||||
systemTitle: '城市轨道交通实训平台'
|
||||
logoImg: '',
|
||||
systemTitle: ''
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
this.systemTitle=loginTitle[getSessionStorage('project')];
|
||||
const project = getSessionStorage('project');
|
||||
this.systemTitle = loginTitle[project];
|
||||
if (project.endsWith('xty')) {
|
||||
this.logoImg = logoImgXty;
|
||||
} else {
|
||||
this.logoImg = logoImg;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
goToMain() {
|
||||
|
@ -2199,10 +2199,10 @@ export const IbpOperation = {
|
||||
|
||||
import LangStorage from '@/utils/lang';
|
||||
export const loginTitle = {
|
||||
xty: '西铁院实训平台',
|
||||
xty: '西安铁路职业技术学院城市轨道交通实训平台',
|
||||
login: LangStorage.getLang() == 'en' ? ' Urban Rail Transit Practical Training Platform' : '城市轨道交通实训平台',
|
||||
design: LangStorage.getLang() == 'en' ? ' Urban Rail Transit Design Platform' : '城市轨道交通设计平台',
|
||||
designxty: '西铁院设计平台'
|
||||
designxty: '西安铁路职业技术学院城市轨道交通设计平台'
|
||||
};
|
||||
|
||||
export const ProjectCode = {
|
||||
|
@ -539,29 +539,39 @@ export default {
|
||||
case 'Dispatcher':
|
||||
this.dispatchList.push(item);
|
||||
break;
|
||||
case 'Attendant':
|
||||
case 'Attendant': {
|
||||
let newAttendantFlag = true;
|
||||
this.equipmentList.forEach((nor, index) => {
|
||||
if (nor.id == item.id) {
|
||||
this.equipmentList.splice(index, 1);
|
||||
this.equipmentList[index] = item;
|
||||
newAttendantFlag = false;
|
||||
}
|
||||
});
|
||||
if (newAttendantFlag) {
|
||||
this.equipmentList.push(item);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 'Driver':
|
||||
this.driverList.push(item);
|
||||
break;
|
||||
case 'Repair':
|
||||
this.signalList.push(item);
|
||||
break;
|
||||
case 'IBP':
|
||||
case 'IBP': {
|
||||
let newIbpFlag = true;
|
||||
item.deviceCode = [item.deviceCode || '', item.ibpPart || ''];
|
||||
this.ibpList.forEach((nor, index) => {
|
||||
if (nor.id == item.id) {
|
||||
this.ibpList.splice(index, 1);
|
||||
this.ibpList[index] = item;
|
||||
newIbpFlag = false;
|
||||
}
|
||||
});
|
||||
item.deviceCode = [item.deviceCode, item.ibpPart];
|
||||
if (newIbpFlag) {
|
||||
this.ibpList.push(item);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 'BigScreen':
|
||||
this.bigScreenList.push(item);
|
||||
break;
|
||||
@ -856,10 +866,13 @@ export default {
|
||||
ibpPart: val.ibpPart
|
||||
}];
|
||||
putUserRoles(params, this.$route.query.group);
|
||||
this.setSelectedItemDisabled(role, stationList, list);
|
||||
},
|
||||
setSelectedItemDisabled(role, stationList, list) {
|
||||
stationList.forEach(item => {
|
||||
item.disabled = false;
|
||||
list.forEach(nor => {
|
||||
if (item.value === nor.deviceCode[0]) {
|
||||
if (item.code === nor.deviceCode) {
|
||||
item.disabled = true;
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user