Merge branch 'test' of https://git.code.tencent.com/lian-cbtc/jl-client into test
This commit is contained in:
commit
70d440b2b6
@ -212,7 +212,7 @@ export default {
|
|||||||
addTaskHint1: 'Please set the section running time of the start section ',
|
addTaskHint1: 'Please set the section running time of the start section ',
|
||||||
addTaskHint2: 'to the section',
|
addTaskHint2: 'to the section',
|
||||||
addTaskHint3: '',
|
addTaskHint3: '',
|
||||||
normalNew: 'Normal new',
|
normalNew: 'New',
|
||||||
createFromTheReleaseRunGraph: 'Create from the release run graph',
|
createFromTheReleaseRunGraph: 'Create from the release run graph',
|
||||||
releaseRunGraph: 'Release run graph',
|
releaseRunGraph: 'Release run graph',
|
||||||
newRunGraph: 'New run graph',
|
newRunGraph: 'New run graph',
|
||||||
|
@ -215,7 +215,7 @@ export default {
|
|||||||
addTaskHint1: '请先设置开始区段',
|
addTaskHint1: '请先设置开始区段',
|
||||||
addTaskHint2: '终到区段',
|
addTaskHint2: '终到区段',
|
||||||
addTaskHint3: '的站间运行时间',
|
addTaskHint3: '的站间运行时间',
|
||||||
normalNew: '正常新建',
|
normalNew: '新建',
|
||||||
runGraphName: '运行图名称',
|
runGraphName: '运行图名称',
|
||||||
createFromTheReleaseRunGraph: '从发布运行图创建',
|
createFromTheReleaseRunGraph: '从发布运行图创建',
|
||||||
releaseRunGraph: '发布运行图',
|
releaseRunGraph: '发布运行图',
|
||||||
|
@ -186,7 +186,7 @@ export default {
|
|||||||
let name = section.name;
|
let name = section.name;
|
||||||
if (section.type == '02') {
|
if (section.type == '02') {
|
||||||
const sectionParent = this.$store.getters['map/getDeviceByCode'](section.parentCode);
|
const sectionParent = this.$store.getters['map/getDeviceByCode'](section.parentCode);
|
||||||
name = `${sectionParent.name}${section.name}`;
|
name = `${sectionParent.name}-${section.name}`;
|
||||||
}
|
}
|
||||||
if (section.stationCode == this.selected.stationCode) {
|
if (section.stationCode == this.selected.stationCode) {
|
||||||
list.push({ name: name, code: section.code });
|
list.push({ name: name, code: section.code });
|
||||||
|
@ -69,13 +69,13 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="confirmedUserName" label="确认人编号" width="120px" />
|
<el-table-column prop="confirmedUserName" label="确认人编号" width="120px" />
|
||||||
<el-table-column prop="confirmTime" label="确认时间" width="150px" />
|
<el-table-column prop="confirmTime" label="确认时间" width="150px" />
|
||||||
<el-table-column prop="recoverTime" label="恢复">
|
<el-table-column prop="recovered" label="恢复">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span>{{ scope.row.recovered? 'Y':'N' }}</span>
|
<span>{{ scope.row.recovered? 'Y':'N' }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="address" label="恢复时间" />
|
<el-table-column prop="recoverTime" label="恢复时间" width="150px" />
|
||||||
<el-table-column prop="address" label="备注信息" width="200px" />
|
<el-table-column prop="address" label="备注信息" width="100px" />
|
||||||
</el-table>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
@ -136,7 +136,7 @@ export default {
|
|||||||
confirmAlarm(this.$route.query.group, codes).then(resp => {
|
confirmAlarm(this.$route.query.group, codes).then(resp => {
|
||||||
this.queryData(true);
|
this.queryData(true);
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
EventBus.$emit('sendMsg', {message: '确认消息失败!'});
|
EventBus.$emit('sendMsg', {message: '确认消息失败!'});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleDeviceName(code) {
|
handleDeviceName(code) {
|
||||||
|
@ -138,6 +138,11 @@ export default {
|
|||||||
},
|
},
|
||||||
getDisabled(code, type) {
|
getDisabled(code, type) {
|
||||||
const newStation = this.$store.getters['map/getDeviceByCode'](code);
|
const newStation = this.$store.getters['map/getDeviceByCode'](code);
|
||||||
|
const centralizedStationCode = this.stationCentralizedMap[code];
|
||||||
|
const centralizedStation = this.$store.getters['map/getDeviceByCode'](centralizedStationCode);
|
||||||
|
if (this.$store.state.training.prdType === '01' && centralizedStation.controlMode === 'Center') {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
if (type === 'apply') {
|
if (type === 'apply') {
|
||||||
return newStation.controller === this.memberId;
|
return newStation.controller === this.memberId;
|
||||||
} else if (type === 'release') {
|
} else if (type === 'release') {
|
||||||
@ -155,7 +160,11 @@ export default {
|
|||||||
},
|
},
|
||||||
applyAll() {
|
applyAll() {
|
||||||
this.tableData.forEach(item => {
|
this.tableData.forEach(item => {
|
||||||
if (item.controller !== this.memberId) {
|
const centralizedStationCode = this.stationCentralizedMap[item.code];
|
||||||
|
const centralizedStation = this.$store.getters['map/getDeviceByCode'](centralizedStationCode);
|
||||||
|
if (this.$store.state.training.prdType === '01' && centralizedStation.controlMode === 'Center') {
|
||||||
|
item.apply = false;
|
||||||
|
} else if (item.controller !== this.memberId) {
|
||||||
item.apply = true;
|
item.apply = true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -167,7 +176,11 @@ export default {
|
|||||||
},
|
},
|
||||||
releaseAll() {
|
releaseAll() {
|
||||||
this.tableData.forEach(item => {
|
this.tableData.forEach(item => {
|
||||||
if (item.controller === this.memberId) {
|
const centralizedStationCode = this.stationCentralizedMap[item.code];
|
||||||
|
const centralizedStation = this.$store.getters['map/getDeviceByCode'](centralizedStationCode);
|
||||||
|
if (this.$store.state.training.prdType === '01' && centralizedStation.controlMode === 'Center') {
|
||||||
|
item.apply = false;
|
||||||
|
} else if (item.controller === this.memberId) {
|
||||||
item.release = true;
|
item.release = true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<el-tooltip v-if="item.tip" effect="dark" :content="$t('login.clickSwitchLanguage')" placement="bottom-end">
|
<el-tooltip v-if="item.tip" effect="dark" :content="$t('login.clickSwitchLanguage')" placement="bottom-end">
|
||||||
<span style="color: white;">{{ item.name }}</span>
|
<span style="color: white;">{{ item.name }}</span>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
<el-dropdown v-else-if="isShown && item.isHelp" class="avatar-container" trigger="hover" :show-timeout="100" style="height:58px">
|
<el-dropdown v-else-if="item.isHelp" class="avatar-container" trigger="hover" :show-timeout="100" style="height:58px">
|
||||||
<div class="avatar-wrapper">
|
<div class="avatar-wrapper">
|
||||||
<span style="color: white;">
|
<span style="color: white;">
|
||||||
{{ $t(item.name) }}
|
{{ $t(item.name) }}
|
||||||
@ -14,7 +14,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<el-dropdown-menu slot="dropdown" class="user-dropdown">
|
<el-dropdown-menu slot="dropdown" class="user-dropdown">
|
||||||
<el-dropdown-item v-for="(el, i) in caseList" :key="i">
|
<el-dropdown-item v-for="(el, i) in caseList" :key="i">
|
||||||
<span style="display:block;" @click="goToCaseShow(el)">{{el.name}}</span>
|
<span style="display:block;" @click="goToCaseShow(el)">{{ el.name }}</span>
|
||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
@ -58,7 +58,7 @@ export default {
|
|||||||
handle: this.goEmpty,
|
handle: this.goEmpty,
|
||||||
isHelp:true,
|
isHelp:true,
|
||||||
style:'padding-right:0px;',
|
style:'padding-right:0px;',
|
||||||
hidden:getSessionStorage('project').endsWith('heb')
|
hidden: CaseHideProjectList.includes(getSessionStorage('project'))
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'global.scan', // 扫码
|
name: 'global.scan', // 扫码
|
||||||
@ -75,28 +75,28 @@ export default {
|
|||||||
handle: this.switchLanguage,
|
handle: this.switchLanguage,
|
||||||
hidden: false,
|
hidden: false,
|
||||||
tip: true
|
tip: true
|
||||||
|
}
|
||||||
|
// {
|
||||||
|
// name: 'global.help',
|
||||||
|
// handle: this.goToHelp,
|
||||||
|
// hidden: getSessionStorage('project').endsWith('heb')
|
||||||
|
// }
|
||||||
|
|
||||||
|
],
|
||||||
|
caseList: [
|
||||||
|
{
|
||||||
|
name: '西安铁路职业技术学院',
|
||||||
|
url: 'https://joylink.club/oss/portal/cases/西安铁路职业技术学院.pdf'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'global.help',
|
name: '贵州装备制造职业学院',
|
||||||
handle: this.goToHelp,
|
url: 'https://joylink.club/oss/portal/cases/贵州装备制造职业学院机电技术专业实训室建设.pdf'
|
||||||
hidden: getSessionStorage('project').endsWith('heb')
|
},
|
||||||
|
{
|
||||||
|
name: '江苏电子信息职业学院',
|
||||||
|
url: 'https://joylink.club/oss/portal/cases/江苏电子信息职业学院-城市轨道交通行车组织综合实训室.pdf'
|
||||||
}
|
}
|
||||||
|
],
|
||||||
],
|
|
||||||
caseList: [
|
|
||||||
{
|
|
||||||
name: '西安铁路职业技术学院',
|
|
||||||
url: 'https://joylink.club/oss/portal/cases/西安铁路职业技术学院.pdf'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '贵州装备制造职业学院',
|
|
||||||
url: 'https://joylink.club/oss/portal/cases/贵州装备制造职业学院机电技术专业实训室建设.pdf'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '江苏电子信息职业学院',
|
|
||||||
url: 'https://joylink.club/oss/portal/cases/江苏电子信息职业学院-城市轨道交通行车组织综合实训室.pdf'
|
|
||||||
}
|
|
||||||
],
|
|
||||||
stomp: null,
|
stomp: null,
|
||||||
header: null,
|
header: null,
|
||||||
lang: 'zh'
|
lang: 'zh'
|
||||||
@ -108,10 +108,6 @@ export default {
|
|||||||
},
|
},
|
||||||
project() {
|
project() {
|
||||||
return getSessionStorage('project');
|
return getSessionStorage('project');
|
||||||
},
|
|
||||||
isShown() {
|
|
||||||
const project = getSessionStorage('project');
|
|
||||||
return !CaseHideProjectList.includes(project);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
@ -474,9 +474,9 @@ export const ProjectCode = {
|
|||||||
};
|
};
|
||||||
export const BottomColumnOnlyConInfo = ['heb', 'designheb', 'jyd', 'designjyd', 'tky', 'designtky', 'bxkc', 'designbxkc', 'crsc', 'designcrsc', 'hls', 'designhls', 'hyd', 'designhyd', 'cgy', 'designcgy']; // 底部栏仅展示公司信息不展示备案号
|
export const BottomColumnOnlyConInfo = ['heb', 'designheb', 'jyd', 'designjyd', 'tky', 'designtky', 'bxkc', 'designbxkc', 'crsc', 'designcrsc', 'hls', 'designhls', 'hyd', 'designhyd', 'cgy', 'designcgy']; // 底部栏仅展示公司信息不展示备案号
|
||||||
export const GetMapListByProjectList = ['xty', 'designxty', 'gzb', 'designgzb', 'xadt', 'designxadt', 'heb', 'designheb', 'designdrts', 'drts', 'nty', 'designnty', 'sdy', 'designsdy', 'ntyc', 'designntyc', 'ntyl', 'designntyl', 'designbjd', 'cgy', 'designcgy']; // 实训设计平台通过项目code获取地图列表的项目
|
export const GetMapListByProjectList = ['xty', 'designxty', 'gzb', 'designgzb', 'xadt', 'designxadt', 'heb', 'designheb', 'designdrts', 'drts', 'nty', 'designnty', 'sdy', 'designsdy', 'ntyc', 'designntyc', 'ntyl', 'designntyl', 'designbjd', 'cgy', 'designcgy']; // 实训设计平台通过项目code获取地图列表的项目
|
||||||
export const CaseHideProjectList = ['heb', 'designheb']; // 案例展示隐藏的项目
|
export const CaseHideProjectList = ['heb', 'designheb', 'cgy', 'designcgy']; // 案例展示隐藏的项目
|
||||||
export const VersionBaseNoShow = ['heb', 'designheb', 'hls', 'designhls', 'drts', 'hyd', 'designhyd', 'cgy', 'designcgy']; // 登录页右下角版本开发基于不展示
|
export const VersionBaseNoShow = ['heb', 'designheb', 'hls', 'designhls', 'drts', 'hyd', 'designhyd', 'cgy', 'designcgy']; // 登录页右下角版本开发基于不展示
|
||||||
export const MainBodyNoShow = ['heb', 'designheb', 'jyd', 'designjyd', 'tky', 'designtky', 'bxkc', 'designbxkc', 'crsc', 'designcrsc', 'hls', 'designhls', 'hyd', 'designhyd']; // 登录页右下角主体不展示
|
export const MainBodyNoShow = ['heb', 'designheb', 'jyd', 'designjyd', 'tky', 'designtky', 'bxkc', 'designbxkc', 'crsc', 'designcrsc', 'hls', 'designhls', 'hyd', 'designhyd', 'cgy', 'designcgy']; // 登录页右下角主体不展示
|
||||||
export const ProjectLoginStyleList = ['gzb', 'designgzb', 'xty', 'designxty', 'xadt', 'designxadt', 'tky', 'designtky', 'jyd', 'designjyd', 'bxkc', 'designbxkc',
|
export const ProjectLoginStyleList = ['gzb', 'designgzb', 'xty', 'designxty', 'xadt', 'designxadt', 'tky', 'designtky', 'jyd', 'designjyd', 'bxkc', 'designbxkc',
|
||||||
'crsc', 'designcrsc', 'hls', 'designhls', 'drts', 'hyd', 'designhyd', 'nty', 'designnty', 'bjd', 'designbjd', 'sdy', 'designsdy', 'ntyc', 'designntyc', 'ntyl', 'designntyl', 'cgy', 'designcgy']; // 登录页样式
|
'crsc', 'designcrsc', 'hls', 'designhls', 'drts', 'hyd', 'designhyd', 'nty', 'designnty', 'bjd', 'designbjd', 'sdy', 'designsdy', 'ntyc', 'designntyc', 'ntyl', 'designntyl', 'cgy', 'designcgy']; // 登录页样式
|
||||||
export const NoQrcodeList = ['heb', 'designheb'];
|
export const NoQrcodeList = ['heb', 'designheb'];
|
||||||
@ -513,9 +513,9 @@ export const goOtherPlatformMenu = { // 导航栏快速切换平台
|
|||||||
ntyl: '/design/login?project=ntyl',
|
ntyl: '/design/login?project=ntyl',
|
||||||
designntyl: '/login?project=ntyl',
|
designntyl: '/login?project=ntyl',
|
||||||
ntyc: '/design/login?project=ntyc',
|
ntyc: '/design/login?project=ntyc',
|
||||||
designntyc: '/login?project=ntyc',
|
designntyc: '/login?project=ntyc'
|
||||||
cgy: '/design/login?project=cgy',
|
// cgy: '/design/login?project=cgy',
|
||||||
designcgy: '/login?project=cgy'
|
// designcgy: '/login?project=cgy'
|
||||||
};
|
};
|
||||||
export const ProjectList = [
|
export const ProjectList = [
|
||||||
{value:'xty', label:'西铁院'},
|
{value:'xty', label:'西铁院'},
|
||||||
|
@ -119,7 +119,7 @@ export default {
|
|||||||
{ prop: 'points', label: this.$t('map.segmentCoordinates'), type: 'points', width: '100px', isHidden: !this.isPointsShow, addPoint: this.addPoint, delPoint: this.delPoint },
|
{ prop: 'points', label: this.$t('map.segmentCoordinates'), type: 'points', width: '100px', isHidden: !this.isPointsShow, addPoint: this.addPoint, delPoint: this.delPoint },
|
||||||
{ prop: 'stationCode', label: this.$t('map.equipmentStation') + ':', type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.centralizedStationList },
|
{ prop: 'stationCode', label: this.$t('map.equipmentStation') + ':', type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.centralizedStationList },
|
||||||
{ prop: 'offsetX', label: '右侧设备X偏移:', type: 'number', min: 0, isHidden: !this.isFoldLine },
|
{ prop: 'offsetX', label: '右侧设备X偏移:', type: 'number', min: 0, isHidden: !this.isFoldLine },
|
||||||
{ prop: 'offsetY', label: '左侧设备Y偏移:', type: 'number', min: 0, isHidden: !this.isFoldLine }
|
{ prop: 'offsetY', label: '右侧设备Y偏移:', type: 'number', min: 0, isHidden: !this.isFoldLine }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
map: {
|
map: {
|
||||||
|
@ -487,17 +487,13 @@ export default {
|
|||||||
addStartSectionData(isStation) {
|
addStartSectionData(isStation) {
|
||||||
if (this.addModel.startStationCode != '' && this.addModel.startSectionCode != '') {
|
if (this.addModel.startStationCode != '' && this.addModel.startSectionCode != '') {
|
||||||
this.isStartSelected = true;
|
this.isStartSelected = true;
|
||||||
const result = this.pushSection({stationCode: this.addModel.startStationCode, sectionCode: this.addModel.startSectionCode}, 'top', isStation);
|
this.pushSection({stationCode: this.addModel.startStationCode, sectionCode: this.addModel.startSectionCode}, 'top', isStation);
|
||||||
return result;
|
|
||||||
}
|
}
|
||||||
return false;
|
|
||||||
},
|
},
|
||||||
addEndSectionData(isStation) {
|
addEndSectionData(isStation) {
|
||||||
if (this.addModel.endStationCode != '' && this.addModel.endSectionCode != '') {
|
if (this.addModel.endStationCode != '' && this.addModel.endSectionCode != '') {
|
||||||
const result = this.pushSection({stationCode: this.addModel.endStationCode, sectionCode: this.addModel.endSectionCode}, 'bottom', isStation);
|
this.pushSection({stationCode: this.addModel.endStationCode, sectionCode: this.addModel.endSectionCode}, 'bottom', isStation);
|
||||||
return result;
|
|
||||||
}
|
}
|
||||||
return false;
|
|
||||||
},
|
},
|
||||||
buildModel(code) {
|
buildModel(code) {
|
||||||
const model = Object.assign({}, this.addModel);
|
const model = Object.assign({}, this.addModel);
|
||||||
|
Loading…
Reference in New Issue
Block a user