Merge branch 'test' of https://git.code.tencent.com/lian-cbtc/jl-client into test
This commit is contained in:
commit
9ea9d56309
@ -78,10 +78,30 @@ export default {
|
|||||||
return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : '';
|
return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : '';
|
||||||
},
|
},
|
||||||
domIdChoose() {
|
domIdChoose() {
|
||||||
return this.dialogShow ? OperationEvent.Signal.arrangementRoute.choose.domId : '';
|
if (this.dialogShow) {
|
||||||
|
if (this.operation == OperationEvent.StationControl.requestCentralControl.menu.operation) {
|
||||||
|
return OperationEvent.StationControl.requestCentralControl.choose.domId;
|
||||||
|
} else if (this.operation == OperationEvent.StationControl.requestStationControl.menu.operation) {
|
||||||
|
return OperationEvent.StationControl.StationControl.choose.domId;
|
||||||
|
} else {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
},
|
},
|
||||||
domIdConfirm() {
|
domIdConfirm() {
|
||||||
return this.dialogShow ? OperationEvent.Signal.arrangementRoute.menu.domId : '';
|
if (this.dialogShow) {
|
||||||
|
if (this.operation == OperationEvent.StationControl.requestCentralControl.menu.operation) {
|
||||||
|
return OperationEvent.StationControl.requestCentralControl.confirm.domId;
|
||||||
|
} else if (this.operation == OperationEvent.StationControl.requestStationControl.menu.operation) {
|
||||||
|
return OperationEvent.StationControl.StationControl.confirm.domId;
|
||||||
|
} else {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
},
|
},
|
||||||
title() {
|
title() {
|
||||||
return '站遥控转换';
|
return '站遥控转换';
|
||||||
@ -216,10 +236,10 @@ export default {
|
|||||||
};
|
};
|
||||||
if (this.controlMode == 'center') {
|
if (this.controlMode == 'center') {
|
||||||
operate.cmdType = CMD.ControlConvertMenu.CMD_CM_APPLY_FOR_STATION_CONTROL;
|
operate.cmdType = CMD.ControlConvertMenu.CMD_CM_APPLY_FOR_STATION_CONTROL;
|
||||||
operate.operation = OperationEvent.StationControl.requestStationControl.menu.operation;
|
operate.operation = OperationEvent.StationControl.requestStationControl.confirm.operation;
|
||||||
} else if (this.controlMode == 'local') {
|
} else if (this.controlMode == 'local') {
|
||||||
operate.cmdType = CMD.ControlConvertMenu.CMD_CM_APPLY_FOR_CENTER_CONTROL;
|
operate.cmdType = CMD.ControlConvertMenu.CMD_CM_APPLY_FOR_CENTER_CONTROL;
|
||||||
operate.operation = OperationEvent.StationControl.requestCentralControl.menu.operation;
|
operate.operation = OperationEvent.StationControl.requestCentralControl.confirm.operation;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
|
@ -112,7 +112,7 @@ export default {
|
|||||||
},
|
},
|
||||||
setCenterControl() {
|
setCenterControl() {
|
||||||
// 请求中控(遥控)
|
// 请求中控(遥控)
|
||||||
commitOperate(menuOperate.StationControl.requestCentralControl, {}, 0).then(({valid, operate})=>{
|
commitOperate(menuOperate.StationControl.requestCentralControl, {standCode:this.selected.code}, 0).then(({valid, operate})=>{
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$refs.stationControl.doShow(operate, this.selected);
|
this.$refs.stationControl.doShow(operate, this.selected);
|
||||||
}
|
}
|
||||||
@ -120,7 +120,7 @@ export default {
|
|||||||
},
|
},
|
||||||
setStationControl() {
|
setStationControl() {
|
||||||
// 请求站控
|
// 请求站控
|
||||||
commitOperate(menuOperate.StationControl.requestStationControl, {}, 0).then(({valid, operate})=>{
|
commitOperate(menuOperate.StationControl.requestStationControl, {standCode:this.selected.code}, 0).then(({valid, operate})=>{
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$refs.stationControl.doShow(operate, this.selected);
|
this.$refs.stationControl.doShow(operate, this.selected);
|
||||||
}
|
}
|
||||||
|
@ -414,7 +414,7 @@ export default {
|
|||||||
{
|
{
|
||||||
maxDuration: 15,
|
maxDuration: 15,
|
||||||
minDuration: 8,
|
minDuration: 8,
|
||||||
operateType: 'Section_Confirm_Axis_Valid',
|
operateType: 'Switch_Confirm_Axis_Valid',
|
||||||
skinCode: '06',
|
skinCode: '06',
|
||||||
trainingName: '确认计轴有效({8}{9})',
|
trainingName: '确认计轴有效({8}{9})',
|
||||||
trainingRemark: '确认计轴有效功能',
|
trainingRemark: '确认计轴有效功能',
|
||||||
@ -743,8 +743,8 @@ export default {
|
|||||||
trainingType: 'ControlConvertMenu',
|
trainingType: 'ControlConvertMenu',
|
||||||
productTypes: ['02'], // 行调请求中控
|
productTypes: ['02'], // 行调请求中控
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: 'button', orderNum: 1, operateCode: '202', tip: '鼠标右键菜单选择【请求遥控】'},
|
{ deviceType: 'button', orderNum: 1, operateCode: '204', tip: '鼠标右键菜单选择【请求遥控】'},
|
||||||
{ deviceType: '05', orderNum: 2, operateCode: '202', tip: '鼠标左键点击【应用】' }
|
{ deviceType: '05', orderNum: 2, operateCode: '2043', tip: '鼠标左键点击【应用】' }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -757,8 +757,8 @@ export default {
|
|||||||
trainingType: 'ControlConvertMenu',
|
trainingType: 'ControlConvertMenu',
|
||||||
productTypes: ['01'], // 现地请求站控
|
productTypes: ['01'], // 现地请求站控
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: 'button', orderNum: 1, operateCode: '204', tip: '鼠标右键菜单选择【请求站控】'},
|
{ deviceType: 'button', orderNum: 1, operateCode: '202', tip: '鼠标右键菜单选择【请求站控】'},
|
||||||
{ deviceType: '05', orderNum: 2, operateCode: '204', tip: '鼠标左键点击【应用】' }
|
{ deviceType: '05', orderNum: 2, operateCode: '2023', tip: '鼠标左键点击【应用】' }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -29,7 +29,7 @@ export default {
|
|||||||
/** 强扳 */
|
/** 强扳 */
|
||||||
CMD_SWITCH_FORCE_TURN: {value:'Switch_Force_Turn', label: '强扳'},
|
CMD_SWITCH_FORCE_TURN: {value:'Switch_Force_Turn', label: '强扳'},
|
||||||
/** 确认计轴有效 */
|
/** 确认计轴有效 */
|
||||||
CMD_SWITCH_COMFIRMATION_AXLE:{value:'Switch_Comfirmation_Axle', label: '确认计轴有效'},
|
CMD_SWITCH_COMFIRMATION_AXLE:{value:'Switch_Confirm_Axis_Valid', label: '确认计轴有效'},
|
||||||
/** 定位(定操) */
|
/** 定位(定操) */
|
||||||
CMD_SWITCH_NORMAL_POSITION:{value:'Switch_Normal_Position', label:'单操到定位'},
|
CMD_SWITCH_NORMAL_POSITION:{value:'Switch_Normal_Position', label:'单操到定位'},
|
||||||
/** 反位(反操) */
|
/** 反位(反操) */
|
||||||
|
@ -53,6 +53,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import ConstConfig from '@/scripts/ConstConfig';
|
||||||
|
import Cookies from 'js-cookie';
|
||||||
import { createCommand, editCommand, getCommandDetail } from '@/api/management/dictionary';
|
import { createCommand, editCommand, getCommandDetail } from '@/api/management/dictionary';
|
||||||
import CommandEdit from './editParam';
|
import CommandEdit from './editParam';
|
||||||
import { getLineCodeList } from '@/api/management/mapline';
|
import { getLineCodeList } from '@/api/management/mapline';
|
||||||
@ -77,6 +79,7 @@ export default {
|
|||||||
formModel: {
|
formModel: {
|
||||||
id: '',
|
id: '',
|
||||||
simulationRole: '',
|
simulationRole: '',
|
||||||
|
prdType:'',
|
||||||
controlMode: [],
|
controlMode: [],
|
||||||
lineCode: '',
|
lineCode: '',
|
||||||
operateObject: '',
|
operateObject: '',
|
||||||
@ -87,11 +90,18 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
prdTypeList() {
|
||||||
|
const productTypeList = ConstConfig.ConstSelect.prdType;
|
||||||
|
return Cookies.get('user_lang') == 'en'
|
||||||
|
? productTypeList.map(elem => { return { value: elem.value, label: elem.enlabel }; })
|
||||||
|
: productTypeList.map(elem => { return { value: elem.value, label: elem.label }; });
|
||||||
|
},
|
||||||
form() {
|
form() {
|
||||||
const form = {
|
const form = {
|
||||||
labelWidth: '120px',
|
labelWidth: '120px',
|
||||||
items: [
|
items: [
|
||||||
{ prop: 'lineCode', label: this.$t('system.lineCode'), type: 'select', options: this.taskStatusList },
|
{ prop: 'lineCode', label: this.$t('system.lineCode'), type: 'select', options: this.taskStatusList },
|
||||||
|
{ prop:'prdType', label:this.$t('system.prdType'), type: 'select', options: this.prdTypeList},
|
||||||
{ prop: 'simulationRole', label: this.$t('system.simulationRole'), type: 'select', options: this.$ConstSelect.simulationRole },
|
{ prop: 'simulationRole', label: this.$t('system.simulationRole'), type: 'select', options: this.$ConstSelect.simulationRole },
|
||||||
{ prop: 'controlMode', label: this.$t('system.controlMode'), type: 'select', options: this.$ConstSelect.controlMode, multiple: true },
|
{ prop: 'controlMode', label: this.$t('system.controlMode'), type: 'select', options: this.$ConstSelect.controlMode, multiple: true },
|
||||||
{ prop: 'operateObject', label: this.$t('system.deviceType'), type: 'select', options: this.$ConstSelect.deviceTypeList, change: true, onChange: this.deviceChange },
|
{ prop: 'operateObject', label: this.$t('system.deviceType'), type: 'select', options: this.$ConstSelect.deviceTypeList, change: true, onChange: this.deviceChange },
|
||||||
@ -108,6 +118,9 @@ export default {
|
|||||||
operateObject: [
|
operateObject: [
|
||||||
{ required: true, message: this.$t('rules.pleaseSelectStatus'), trigger: 'change' }
|
{ required: true, message: this.$t('rules.pleaseSelectStatus'), trigger: 'change' }
|
||||||
],
|
],
|
||||||
|
prdType:[
|
||||||
|
{ required: true, message: this.$t('rules.pleaseSelectStatus'), trigger: 'change' }
|
||||||
|
],
|
||||||
lineCode: [
|
lineCode: [
|
||||||
{ required: true, message: this.$t('rules.pleaseSelectStatus'), trigger: 'change' }
|
{ required: true, message: this.$t('rules.pleaseSelectStatus'), trigger: 'change' }
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user