Merge branch 'test' of git.code.tencent.com:lian-cbtc/jl-client into yly_xa3
This commit is contained in:
commit
b2398b5563
@ -134,13 +134,6 @@ deviceState[deviceType.StationStand] = {
|
|||||||
parkingTime: 0, // 站台停车时间 自动为0
|
parkingTime: 0, // 站台停车时间 自动为0
|
||||||
num:0, // 站台上等车人数
|
num:0, // 站台上等车人数
|
||||||
// /** 折返策略*/
|
// /** 折返策略*/
|
||||||
// reentryStrategy: {
|
|
||||||
// Default: '01', /** 默认(缺省值)*/
|
|
||||||
// State01: '01', /** 无折返策略 */
|
|
||||||
// State02: '02', /** 无人折返 */
|
|
||||||
// State03: '03', /** 自动换端 */
|
|
||||||
// State04: '04' /** 默认 */
|
|
||||||
// },
|
|
||||||
/** 是否故障*/
|
/** 是否故障*/
|
||||||
fault: 0 /** 非故障*/
|
fault: 0 /** 非故障*/
|
||||||
};
|
};
|
||||||
|
@ -63,17 +63,17 @@ class EReentry extends Group {
|
|||||||
reentryStrategy = model.defaultReentryStrategy;
|
reentryStrategy = model.defaultReentryStrategy;
|
||||||
}
|
}
|
||||||
switch (reentryStrategy) {
|
switch (reentryStrategy) {
|
||||||
case '04': /** 默认*/
|
case 'DEFAULT': /** 默认*/
|
||||||
case '01': {
|
case 'NONE': {
|
||||||
this.reentry && this.reentry.hideMode(); /** 无折返策略*/
|
this.reentry && this.reentry.hideMode(); /** 无折返策略*/
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case '02': {
|
case 'UNMANNED': {
|
||||||
this.showMode(); /** 无人折返*/
|
this.showMode(); /** 无人折返*/
|
||||||
this.setColor(style.StationStand.reentry.noHumanColor);
|
this.setColor(style.StationStand.reentry.noHumanColor);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case '03':/** 自动换端*/ {
|
case 'AUTO':/** 自动换端*/ {
|
||||||
this.showMode();
|
this.showMode();
|
||||||
this.setColor(style.StationStand.reentry.autoChangeEndsColor);
|
this.setColor(style.StationStand.reentry.autoChangeEndsColor);
|
||||||
break;
|
break;
|
||||||
|
@ -68,6 +68,7 @@ import { MapDeviceType } from '@/scripts/cmdPlugin/Config';
|
|||||||
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
|
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
|
||||||
import { mouseCancelState } from '@/jmapNew/theme/components/utils/menuItemStatus';
|
import { mouseCancelState } from '@/jmapNew/theme/components/utils/menuItemStatus';
|
||||||
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
|
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
|
||||||
|
import { TurnBackTypeMap } from '@/scripts/ConstDic';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'StandDetail',
|
name: 'StandDetail',
|
||||||
@ -81,12 +82,7 @@ export default {
|
|||||||
tempData: [],
|
tempData: [],
|
||||||
stationName: '',
|
stationName: '',
|
||||||
standName: '',
|
standName: '',
|
||||||
strategyMap: {
|
strategyMap: TurnBackTypeMap,
|
||||||
'01': '无折返',
|
|
||||||
'02': '无人折返',
|
|
||||||
'03': '自动换端',
|
|
||||||
'04': '默认'
|
|
||||||
},
|
|
||||||
treeData: [
|
treeData: [
|
||||||
{
|
{
|
||||||
children: [
|
children: [
|
||||||
|
@ -92,12 +92,6 @@ export default {
|
|||||||
tempData: [],
|
tempData: [],
|
||||||
stationName: '',
|
stationName: '',
|
||||||
standName: '',
|
standName: '',
|
||||||
strategyMap: {
|
|
||||||
'01': '无折返',
|
|
||||||
'02': '无人折返',
|
|
||||||
'03': '自动换端',
|
|
||||||
'04': '默认'
|
|
||||||
},
|
|
||||||
runLevelList: [
|
runLevelList: [
|
||||||
'自动',
|
'自动',
|
||||||
'低速',
|
'低速',
|
||||||
|
@ -62,12 +62,6 @@ export default {
|
|||||||
dialogShow: false,
|
dialogShow: false,
|
||||||
loading: false,
|
loading: false,
|
||||||
tempData: [],
|
tempData: [],
|
||||||
strategyMap: {
|
|
||||||
'01': '无折返',
|
|
||||||
'02': '无人折返',
|
|
||||||
'03': '自动换端',
|
|
||||||
'04': '默认'
|
|
||||||
},
|
|
||||||
treeData: [
|
treeData: [
|
||||||
{
|
{
|
||||||
children: [
|
children: [
|
||||||
|
@ -92,12 +92,6 @@ export default {
|
|||||||
tempData: [],
|
tempData: [],
|
||||||
stationName: '',
|
stationName: '',
|
||||||
standName: '',
|
standName: '',
|
||||||
strategyMap: {
|
|
||||||
'01': '无折返',
|
|
||||||
'02': '无人折返',
|
|
||||||
'03': '自动换端',
|
|
||||||
'04': '默认'
|
|
||||||
},
|
|
||||||
runLevelList: [
|
runLevelList: [
|
||||||
'自动',
|
'自动',
|
||||||
'低速',
|
'低速',
|
||||||
|
@ -83,6 +83,7 @@ import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo'
|
|||||||
import CMD from '@/scripts/cmdPlugin/CommandEnum';
|
import CMD from '@/scripts/cmdPlugin/CommandEnum';
|
||||||
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
|
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
|
||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
|
import ConstConfig from '@/scripts/ConstConfig';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'StandBackStrategy',
|
name: 'StandBackStrategy',
|
||||||
@ -95,24 +96,7 @@ export default {
|
|||||||
dialogShow: false,
|
dialogShow: false,
|
||||||
loading: false,
|
loading: false,
|
||||||
tempData: [],
|
tempData: [],
|
||||||
strategyList: [
|
strategyList: ConstConfig.ConstSelect.turnBackTypeList,
|
||||||
{
|
|
||||||
value: '01',
|
|
||||||
label: this.$t('menu.noSwitchback')
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: '02',
|
|
||||||
label: this.$t('menu.noOneSwitchback')
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: '03',
|
|
||||||
label: this.$t('menu.automaticChange')
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: '04',
|
|
||||||
label: this.$t('menu.default')
|
|
||||||
}
|
|
||||||
],
|
|
||||||
stationName: '',
|
stationName: '',
|
||||||
standStatus: '',
|
standStatus: '',
|
||||||
selection: [],
|
selection: [],
|
||||||
@ -147,7 +131,7 @@ export default {
|
|||||||
loadInitData(selected) {
|
loadInitData(selected) {
|
||||||
this.tempData = [];
|
this.tempData = [];
|
||||||
const station = this.stationList.find(n => n.code == selected.stationCode);
|
const station = this.stationList.find(n => n.code == selected.stationCode);
|
||||||
this.tempData.push({ name: station.name, station: selected.name, strategy: selected.reentryStrategy || '04' });
|
this.tempData.push({ name: station.name, station: selected.name, strategy: selected.reentryStrategy || 'DEFAULT' });
|
||||||
},
|
},
|
||||||
doShow(operate, selected) {
|
doShow(operate, selected) {
|
||||||
this.selected = selected;
|
this.selected = selected;
|
||||||
|
@ -71,6 +71,7 @@ import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo'
|
|||||||
import CMD from '@/scripts/cmdPlugin/CommandEnum';
|
import CMD from '@/scripts/cmdPlugin/CommandEnum';
|
||||||
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
|
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
|
||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
|
import ConstConfig from '@/scripts/ConstConfig';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'StandBackStrategy',
|
name: 'StandBackStrategy',
|
||||||
@ -82,24 +83,7 @@ export default {
|
|||||||
dialogShow: false,
|
dialogShow: false,
|
||||||
loading: false,
|
loading: false,
|
||||||
tempData: [],
|
tempData: [],
|
||||||
strategyList: [
|
strategyList: ConstConfig.ConstSelect.turnBackTypeList,
|
||||||
{
|
|
||||||
value: '01',
|
|
||||||
label: this.$t('menu.noSwitchback')
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: '02',
|
|
||||||
label: this.$t('menu.noOneSwitchback')
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: '03',
|
|
||||||
label: this.$t('menu.automaticChange')
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: '04',
|
|
||||||
label: this.$t('menu.default')
|
|
||||||
}
|
|
||||||
],
|
|
||||||
stationName: '',
|
stationName: '',
|
||||||
standStatus: '',
|
standStatus: '',
|
||||||
selection: [],
|
selection: [],
|
||||||
@ -134,7 +118,7 @@ export default {
|
|||||||
loadInitData(selected) {
|
loadInitData(selected) {
|
||||||
this.tempData = [];
|
this.tempData = [];
|
||||||
const station = this.stationList.find(n => n.code == selected.stationCode);
|
const station = this.stationList.find(n => n.code == selected.stationCode);
|
||||||
this.tempData.push({ name: station.name, station: selected.name, strategy: selected.reentryStrategy || '04' });
|
this.tempData.push({ name: station.name, station: selected.name, strategy: selected.reentryStrategy || 'DEFAULT' });
|
||||||
},
|
},
|
||||||
strategySelectChange(strategy) {
|
strategySelectChange(strategy) {
|
||||||
const operate = {
|
const operate = {
|
||||||
|
@ -227,6 +227,12 @@ export default {
|
|||||||
{ label: '每日加载', value:'EVERY_DAY' },
|
{ label: '每日加载', value:'EVERY_DAY' },
|
||||||
{ label: '周内加载', value: 'WITHIN_A_WEEK' },
|
{ label: '周内加载', value: 'WITHIN_A_WEEK' },
|
||||||
{ label: '周末加载', value: 'WEEKEND' }
|
{ label: '周末加载', value: 'WEEKEND' }
|
||||||
|
],
|
||||||
|
turnBackTypeList: [
|
||||||
|
{ label: '无折返', value: 'NONE' },
|
||||||
|
{ label: '默认', value: 'DEFAULT' },
|
||||||
|
{ label: '自动换端', value: 'AUTO' },
|
||||||
|
{ label: '无人折返', value: 'UNMANNED' }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
/**
|
||||||
|
* 折返类型
|
||||||
|
*/
|
||||||
|
export const TurnBackTypeMap = {
|
||||||
|
NONE: '无折返',
|
||||||
|
DEFAULT: '默认',
|
||||||
|
AUTO: '自动换端',
|
||||||
|
UNMANNED: '无人折返'
|
||||||
|
};
|
||||||
/**
|
/**
|
||||||
* 图纸类型
|
* 图纸类型
|
||||||
*/
|
*/
|
||||||
|
@ -41,6 +41,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
import { getUID } from '@/jmapNew/utils/Uid';
|
import { getUID } from '@/jmapNew/utils/Uid';
|
||||||
|
import ConstConfig from '@/scripts/ConstConfig';
|
||||||
import CreateOperate from './components/createOperate';
|
import CreateOperate from './components/createOperate';
|
||||||
import OperateProperty from './components/operateProperty';
|
import OperateProperty from './components/operateProperty';
|
||||||
import { deepAssign } from '@/utils/index';
|
import { deepAssign } from '@/utils/index';
|
||||||
@ -74,10 +75,7 @@ export default {
|
|||||||
{ code: false, name: '向左'},
|
{ code: false, name: '向左'},
|
||||||
{ code: true, name: '向右'}
|
{ code: true, name: '向右'}
|
||||||
],
|
],
|
||||||
reentryStrategyList: [
|
reentryStrategyList: ConstConfig.ConstSelect.turnBackTypeList,
|
||||||
{ code: '02', name: '自动无人折返'},
|
|
||||||
{ code: '03', name: '自动换端'}
|
|
||||||
],
|
|
||||||
editModel: getModel('StationStand'),
|
editModel: getModel('StationStand'),
|
||||||
field: '',
|
field: '',
|
||||||
addModel: {
|
addModel: {
|
||||||
@ -126,7 +124,7 @@ export default {
|
|||||||
{ prop: 'height', label: this.$t('map.stationstandHeight'), type: 'number', min: 0, max: 2000, placeholder: 'px' },
|
{ prop: 'height', label: this.$t('map.stationstandHeight'), type: 'number', min: 0, max: 2000, placeholder: 'px' },
|
||||||
{ prop: 'standTrackCode', label: '站台轨:', type: 'selectHover', optionLabel: 'name&&code', optionValue: 'code', options: this.PhysicalSectionList, hover: this.hover, buttonType: 'stationStandCode', buttonShowType: this.stationStandCodeShow },
|
{ prop: 'standTrackCode', label: '站台轨:', type: 'selectHover', optionLabel: 'name&&code', optionValue: 'code', options: this.PhysicalSectionList, hover: this.hover, buttonType: 'stationStandCode', buttonShowType: this.stationStandCodeShow },
|
||||||
{ prop: 'right', label: '行驶方向:', type: 'radio', optionLabel: 'name', optionValue: 'code', border: true, radioList: this.isRightList },
|
{ prop: 'right', label: '行驶方向:', type: 'radio', optionLabel: 'name', optionValue: 'code', border: true, radioList: this.isRightList },
|
||||||
{ prop: 'defaultReentryStrategy', label: '默认折返策略:', type: 'select', optionLabel: 'name', optionValue: 'code', options: this.reentryStrategyList },
|
{ prop: 'defaultReentryStrategy', label: '默认折返策略:', type: 'select', optionLabel: 'label', optionValue: 'value', options: this.reentryStrategyList },
|
||||||
{ prop: 'small', label: '是否小型站台:', type: 'checkbox', disabled: true },
|
{ prop: 'small', label: '是否小型站台:', type: 'checkbox', disabled: true },
|
||||||
{ prop: 'inside', label: '是否内站台:', type: 'checkbox' },
|
{ prop: 'inside', label: '是否内站台:', type: 'checkbox' },
|
||||||
{ prop: 'stopJumpLamp', label: '跳停按钮:', type: 'checkbox'},
|
{ prop: 'stopJumpLamp', label: '跳停按钮:', type: 'checkbox'},
|
||||||
|
Loading…
Reference in New Issue
Block a user