代码调整
This commit is contained in:
parent
eddaf7635a
commit
9f95af633a
@ -610,6 +610,7 @@ export default {
|
||||
};
|
||||
},
|
||||
objectSpanMethod({ row, column, rowIndex, columnIndex }) {
|
||||
debugger;
|
||||
if (this.startArray.length > 0) {
|
||||
if (columnIndex === 0) {
|
||||
let rowspan = 1;
|
||||
|
@ -205,13 +205,13 @@ export function covertOperate(operationType, operationParamMap) {
|
||||
if (operationType == 'Set_Fault' || operationType == 'Cancel_Fault') {
|
||||
let deviceName = '';
|
||||
const device = store.getters['map/getDeviceByCode'](operationParamMap.code);
|
||||
if (device._type == 'StationStand') {
|
||||
if (device._type == 'StationStand' || device._type == 'Signal' || device._type == 'Switch') {
|
||||
const station = store.getters['map/getDeviceByCode'](device.stationCode);
|
||||
deviceName += '【车站-' + station.name + '】/';
|
||||
deviceName += '【车站-' + station.name + '】 / ' + deviceType[device._type] + device.name;
|
||||
} else {
|
||||
deviceName = '' + device.name;
|
||||
}
|
||||
let tip = '请找到' + deviceType[device._type] + deviceName + ',';
|
||||
let tip = '请找到' + deviceName + ',';
|
||||
if (operationType == 'Set_Fault') {
|
||||
tip += '设置故障,';
|
||||
} else {
|
||||
@ -262,9 +262,9 @@ export function covertOperate(operationType, operationParamMap) {
|
||||
function covertDeviceName(deviceInfo, deviceType) {
|
||||
let deviceName = '';
|
||||
const device = store.getters['map/getDeviceByCode'](deviceInfo);
|
||||
if (device._type == 'StationStand') {
|
||||
if (device._type == 'StationStand' || device._type == 'Signal' || device._type == 'Switch') {
|
||||
const station = store.getters['map/getDeviceByCode'](device.stationCode);
|
||||
deviceName += '车站-' + station.name + '/';
|
||||
deviceName += '车站-' + station.name + ' / ';
|
||||
}
|
||||
if (device._type == 'Section') {
|
||||
if (device.parentCode && device.type == '02') {
|
||||
|
Loading…
Reference in New Issue
Block a user