diff --git a/src/scripts/ConstConfig.js b/src/scripts/ConstConfig.js
index bdf4c6ba5..4abaabc07 100644
--- a/src/scripts/ConstConfig.js
+++ b/src/scripts/ConstConfig.js
@@ -159,7 +159,8 @@ export default {
{ enlabel: 'Comprehensive exercise cloud platform', label: '综合演练云平台', value: '03'},
{ enlabel: 'Driver simulation driving system', label: '司机模拟驾驶系统', value: '04'},
{ enlabel: 'Dispatch workstation', label: '派班工作站', value: '05'},
- { enlabel: 'ISCS workstation', label: 'ISCS工作站', value: '06'}
+ { enlabel: 'ISCS workstation', label: 'ISCS工作站', value: '06'},
+ { enlabel: 'Interlocking station at depot', label: '车辆段联锁工作站', value: '09' }
],
trainingDeviceType: {
Switch: {enlabel: 'Switch training', label:'道岔实训'},
diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js
index 6752e47ae..cda1b5c90 100644
--- a/src/utils/baseUrl.js
+++ b/src/utils/baseUrl.js
@@ -2,10 +2,9 @@ export function getBaseUrl() {
let BASE_API;
if (process.env.NODE_ENV === 'development') {
// BASE_API = 'https://joylink.club/jlcloud';
- BASE_API = 'https://test.joylink.club/jlcloud';
+ // BASE_API = 'https://test.joylink.club/jlcloud';
// BASE_API = 'http://192.168.8.107:9000'; // 袁琪
- // BASE_API = 'http://192.168.2.175:9000'; // 旭强 有线
- // BASE_API = 'http://192.168.8.167:9000'; // 旭强 无线
+ BASE_API = 'http://192.168.8.167:9000'; // 旭强
// BASE_API = 'http://192.168.2.183:9000'; // 张赛
// BASE_API = 'http://192.168.8.140:9000'; // 杜康
// BASE_API = 'http://b29z135112.zicp.vip';
diff --git a/src/views/newMap/newMapdraft/mapoperate/displayConfig/depotConfig.vue b/src/views/newMap/newMapdraft/mapoperate/displayConfig/depotConfig.vue
new file mode 100644
index 000000000..3fb0003e7
--- /dev/null
+++ b/src/views/newMap/newMapdraft/mapoperate/displayConfig/depotConfig.vue
@@ -0,0 +1,236 @@
+
+
+
+
+
+ 请选择车辆段显示设备
+
+
+
+
设备列表
+
+
+
{{ getDeviceName(nor) }}
+
+
+
+
+
+
+
+ 自动生成
+ 保存
+ 返回
+
+
+
+
+
+
+
+
diff --git a/src/views/newMap/newMapdraft/mapoperate/displayConfig/dispatchConfig.vue b/src/views/newMap/newMapdraft/mapoperate/displayConfig/dispatchConfig.vue
new file mode 100644
index 000000000..12a892c63
--- /dev/null
+++ b/src/views/newMap/newMapdraft/mapoperate/displayConfig/dispatchConfig.vue
@@ -0,0 +1,220 @@
+
+
+
+
+
+ 请选择行调显示设备
+
+
+
+
设备列表
+
+
+
{{ getDeviceName(nor) }}
+
+
+
+
+
+
+
+ 自动生成
+ 保存
+ 返回
+
+
+
+
+
+
+
+
diff --git a/src/views/newMap/newMapdraft/mapoperate/localConfig.vue b/src/views/newMap/newMapdraft/mapoperate/displayConfig/localConfig.vue
similarity index 95%
rename from src/views/newMap/newMapdraft/mapoperate/localConfig.vue
rename to src/views/newMap/newMapdraft/mapoperate/displayConfig/localConfig.vue
index a6d58382c..644b7db80 100644
--- a/src/views/newMap/newMapdraft/mapoperate/localConfig.vue
+++ b/src/views/newMap/newMapdraft/mapoperate/displayConfig/localConfig.vue
@@ -91,7 +91,9 @@ export default {
data() {
return {
tableData: [],
+ otherData: [],
addModel: {
+ type: 'LOCAL',
stationCodeList: [],
switchStationCodeList:[],
elementList: []
@@ -125,7 +127,6 @@ export default {
'tempSpeedLimitList',
'textList',
'totalGuideLockButtonVOList',
- 'localStationConfig',
'seclectDeviceList'
]),
cardTitle() {
@@ -158,7 +159,14 @@ export default {
// }
// },
initData() {
- this.tableData = this.$store.state.map.map.displayList || [];
+ // this.tableData = (this.$store.state.map.map.displayList || []).filter(item => item.type === 'LOCAL');
+ this.$store.state.map.map.displayList.forEach( item => {
+ if (item.type === 'LOCAL') {
+ this.tableData.push(item);
+ } else {
+ this.otherData.push(item);
+ }
+ });
},
deviceSelect(selected) {
if (selected && selected._type.toUpperCase() == 'CheckBox'.toUpperCase()) {
@@ -222,7 +230,7 @@ export default {
save() {
const map = this.$store.state.map.map;
const param = {
- displayList: this.tableData,
+ displayList: [...this.tableData, ...this.otherData],
mapId: this.$route.params.mapId
};
this.dataLoading = true;
@@ -285,7 +293,7 @@ export default {
});
const map = this.$store.state.map.map;
const param = {
- displayList: this.tableData,
+ displayList: [...this.tableData, ...this.otherData],
mapId: this.$route.params.mapId
};
saveMap(Object.assign(map, param)).then(response => {
diff --git a/src/views/newMap/newMapdraft/mapoperate/splitScreen.vue b/src/views/newMap/newMapdraft/mapoperate/displayConfig/splitScreen.vue
similarity index 100%
rename from src/views/newMap/newMapdraft/mapoperate/splitScreen.vue
rename to src/views/newMap/newMapdraft/mapoperate/displayConfig/splitScreen.vue
diff --git a/src/views/newMap/newMapdraft/mapoperate/index.vue b/src/views/newMap/newMapdraft/mapoperate/index.vue
index 9eea48018..c61d4f0d8 100644
--- a/src/views/newMap/newMapdraft/mapoperate/index.vue
+++ b/src/views/newMap/newMapdraft/mapoperate/index.vue
@@ -13,8 +13,10 @@
配置
+ 行调配置
现地配置
大屏配置
+ 车辆段配置
@@ -38,16 +40,10 @@
/>
-
-
-
-
-
-
+
+
+
+
@@ -75,11 +71,13 @@ import ResponderDraft from './responder/index';
import ControlLamp from './controlLamp';
import SplitStation from './splitStation';
import Arrow from './arrow';
-import SplitScreen from './splitScreen';
+import SplitScreen from './displayConfig/splitScreen';
import FloodGate from './floodGate';
import DirectionRod from './directionRod';
import SignalButton from './signalButton';
-import LocalConfig from './localConfig';
+import LocalConfig from './displayConfig/localConfig';
+import DispatchConfig from './displayConfig/dispatchConfig';
+import DepotConfig from './displayConfig/depotConfig';
export default {
name: 'MapOperate',
@@ -111,7 +109,9 @@ export default {
FloodGate,
DirectionRod,
SignalButton,
- LocalConfig
+ LocalConfig,
+ DispatchConfig,
+ DepotConfig
},
props: {
selected: {
@@ -188,12 +188,18 @@ export default {
dataRelation() {
this.$emit('selectView', 'path');
},
+ showDispatchConfig() {
+ this.configShow = 'dispatch';
+ },
showLocalConfig() {
this.configShow = 'local';
},
showScreenConfig() {
this.configShow = 'screen';
},
+ showDepotConfig() {
+ this.configShow = 'depot';
+ },
goDraw() {
this.configShow = 'none';
},