diff --git a/src/views/newMap/display/terminals/registerBook.vue b/src/views/newMap/display/terminals/registerBook.vue index 6e5f4ac92..03bb83098 100644 --- a/src/views/newMap/display/terminals/registerBook.vue +++ b/src/views/newMap/display/terminals/registerBook.vue @@ -114,7 +114,8 @@ import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import FloodControlSafetyTable from './floodControlSafetyTable/index'; import EquipmentConstructionTable from './equipmentConstructionTable'; import AbnormalTrain from './abnormalTrain/index'; - +import CMD from '@/scripts/cmdPlugin/CommandEnum'; +import { sendCommandNew } from '@/api/jmap/training'; // key-link-control-table export default { name: 'Index', @@ -157,11 +158,10 @@ export default { this.queryData(); }, queryData() { - const params = { stationCode: this.$store.state.training.roleDeviceCode}; - commitOperate(menuOperate.Rail.railQueryRegister, params, 3).then(({valid, operate, response})=>{ + sendCommandNew(this.$route.query.group, CMD.RAIL.CMD_RAIL_QUERY_REGISTER.value, { stationCode: this.$store.state.training.roleDeviceCode}).then(response => { this.tableData = response.data ? response.data.lines : []; this.dataIndex = null; - }).catch(()=>{ + }).catch(() => { this.$message.error('查询簿册失败!'); }); },