-
+
+
-
+
@@ -40,6 +38,7 @@
@handleSelectView="handleSelectView"
@handleSelectLogicalView="handleSelectLogicalView"
@handleSelectPhysicalView="handleSelectPhysicalView"
+ @handleSelectHybridView="handleSelectHybridView"
/>
@@ -57,7 +56,6 @@ import { EventBus } from '@/scripts/event-bus';
import ConfigMap from './configMap';
import DataRelation from './dataRelation/index';
-import { setTimeout } from 'timers';
export default {
name: 'MapView',
@@ -80,8 +78,7 @@ export default {
autoSaveTask: null,
selected: null,
mapInfo: { name: this.$t('map.pleaseSelectMap') },
- timeDemon: null,
- loading: false
+ timeDemon: null
};
},
watch: {
@@ -123,10 +120,7 @@ export default {
this.$refs.configMap.doShow();
},
selectViewDraft(data) {
- this.loading = true;
- setTimeout(() => {
- this.viewDraft = data;
- }, 300);
+ this.viewDraft = data;
},
loadInitPage() {
this.$store.dispatch('training/changeMode', { mode: TrainingMode.MAP_EDIT });
@@ -178,6 +172,11 @@ export default {
this.$refs.jlmapVisual.setLevelVisible(handle);
}
},
+ handleSelectHybridView(handle) {
+ if (this.$refs && this.$refs.jlmapVisual) {
+ this.$refs.jlmapVisual.setLevelVisible(handle);
+ }
+ },
clickEvent(em) {
var device = this.getDeviceByEm(em);
this.onSelect(device);
diff --git a/src/views/map/mapdraft/mapedit/mapoperate/ImageControl.vue b/src/views/map/mapdraft/mapedit/mapoperate/ImageControl.vue
index edee0f19e..e23552c46 100644
--- a/src/views/map/mapdraft/mapedit/mapoperate/ImageControl.vue
+++ b/src/views/map/mapdraft/mapedit/mapoperate/ImageControl.vue
@@ -1,22 +1,26 @@
-
+
-
- {{ $t('map.updateObj') }}
- {{ $t('map.deleteObj') }}
-
+
+
+ {{ $t('map.updateObj') }}
+ {{ $t('map.deleteObj') }}
+
+
-
- {{ $t('map.create') }}
-
+
+
+ {{ $t('map.create') }}
+
+
@@ -109,6 +113,10 @@ export default {
const form = {
labelWidth: '150px',
items: {
+ code: {
+ name: '',
+ item: []
+ },
draw: {
name: this.$t('map.drawData'),
item: [
@@ -269,7 +277,11 @@ export default {
diff --git a/src/views/map/mapdraft/mapedit/mapoperate/delayunlock.vue b/src/views/map/mapdraft/mapedit/mapoperate/delayunlock.vue
index b93545609..1b8280cc1 100644
--- a/src/views/map/mapdraft/mapedit/mapoperate/delayunlock.vue
+++ b/src/views/map/mapdraft/mapedit/mapoperate/delayunlock.vue
@@ -1,14 +1,16 @@
-
+
-
- {{ $t('map.updateObj') }}
- {{ $t('map.deleteObj') }}
-
+
+
+ {{ $t('map.updateObj') }}
+ {{ $t('map.deleteObj') }}
+
+
@@ -25,9 +27,11 @@
-
- {{ $t('map.create') }}
-
+
+
+ {{ $t('map.create') }}
+
+
@@ -117,6 +121,10 @@ export default {
const form = {
labelWidth: '120px',
items: {
+ code: {
+ name: '',
+ item: []
+ },
draw: {
name: this.$t('map.drawData'),
item: [
@@ -248,4 +256,9 @@ export default {
diff --git a/src/views/map/mapdraft/mapedit/mapoperate/index.vue b/src/views/map/mapdraft/mapedit/mapoperate/index.vue
index ae323b0cf..c269233c5 100644
--- a/src/views/map/mapdraft/mapedit/mapoperate/index.vue
+++ b/src/views/map/mapdraft/mapedit/mapoperate/index.vue
@@ -329,7 +329,7 @@ export default {
},
resizeCardHeight() {
var padding = 0;
- this.cardHeights = this.cardHeight - padding - 90;
+ this.cardHeights = this.cardHeight - padding - 74;
},
handleSelectControlPage(device) {
const type = device._type;
@@ -394,7 +394,7 @@ export default {
/deep/ .map-draft-group {
float: right;
- margin: 10px 5px;
+ margin: 6px 5px;
}
/deep/ .view-control {
@@ -405,6 +405,19 @@ export default {
.mapEdit .el-tabs__nav-wrap.is-scrollable {
padding: 0 20px;
}
+ .mapEdit .el-tabs__header .el-tabs__item.is-active {
+ border-bottom-color: #f5f7fa;
+ background: #f5f7fa;
+ }
+ .mapEdit .el-tabs__active-bar{
+ background: transparent;
+ }
+
+ .card .el-tabs__nav .el-tabs__item.is-active {
+ border-bottom: 2px solid #E4E7ED;
+ background: #409eff;
+ color: #fff;
+ }
.mapEdit .el-tabs__nav-prev {
width: 20px;
diff --git a/src/views/map/mapdraft/mapedit/mapoperate/lcControl.vue b/src/views/map/mapdraft/mapedit/mapoperate/lcControl.vue
index 0f92dfacd..519161ae6 100644
--- a/src/views/map/mapdraft/mapedit/mapoperate/lcControl.vue
+++ b/src/views/map/mapdraft/mapedit/mapoperate/lcControl.vue
@@ -1,14 +1,16 @@
-
+
-
- {{ $t('map.updateObj') }}
- {{ $t('map.deleteObj') }}
-
+
+
+ {{ $t('map.updateObj') }}
+ {{ $t('map.deleteObj') }}
+
+
@@ -37,9 +39,11 @@
-
- {{ $t('map.create') }}
-
+
+
+ {{ $t('map.create') }}
+
+
@@ -127,6 +131,10 @@ export default {
const form = {
labelWidth: '150px',
items: {
+ code: {
+ name: '',
+ item: []
+ },
draw: {
name: this.$t('map.drawData'),
item: [
@@ -238,7 +246,11 @@ export default {
diff --git a/src/views/map/mapdraft/mapedit/mapoperate/station.vue b/src/views/map/mapdraft/mapedit/mapoperate/station.vue
index cf57db6e4..ca9aaaa0e 100644
--- a/src/views/map/mapdraft/mapedit/mapoperate/station.vue
+++ b/src/views/map/mapdraft/mapedit/mapoperate/station.vue
@@ -1,14 +1,16 @@
-
+
-
- {{ $t('map.updateObj') }}
- {{ $t('map.deleteObj') }}
-
+
+
+ {{ $t('map.updateObj') }}
+ {{ $t('map.deleteObj') }}
+
+
@@ -25,9 +27,11 @@
-
- {{ $t('map.create') }}
-
+
+
+ {{ $t('map.create') }}
+
+
@@ -101,12 +105,16 @@ export default {
const form = {
labelWidth: '150px',
items: {
+ code: {
+ name: '',
+ item: []
+ },
draw: {
name: this.$t('map.drawData'),
item: [
- { prop: 'concentrateStationCode', label: this.$t('map.concentrateStationCode'), type: 'select', optionLabel: 'code&&name', optionValue: 'code', options: this.stationList },
- { prop: 'code', label: this.$t('map.stationCode'), type: 'select', optionLabel: 'code&&name', optionValue: 'code', options: this.stationList, change: true, deviceChange: this.deviceChange },
+ { prop: 'code', label: this.$t('map.stationCode'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.stationList, change: true, deviceChange: this.deviceChange },
{ prop: 'name', label: this.$t('map.stationName'), type: 'input' },
+ { prop: 'concentrateStationCode', label: this.$t('map.concentrateStationCode'), type: 'select', optionLabel: 'code&&name', optionValue: 'code', options: this.stationList },
{ prop: 'visible', label: this.$t('map.stationVisible'), type: 'checkbox' },
{ prop: 'nameFont', label: this.$t('map.stationNameFont'), type: 'font', placeholder: this.$t('tip.stationFont') },
{ prop: 'nameFontColor', label: this.$t('map.stationNameFontColor'), type: 'color' },
@@ -315,4 +323,9 @@ export default {
diff --git a/src/views/map/mapdraft/mapedit/mapoperate/stationcontrol.vue b/src/views/map/mapdraft/mapedit/mapoperate/stationcontrol.vue
index 1f44b4a5f..45a0f615c 100644
--- a/src/views/map/mapdraft/mapedit/mapoperate/stationcontrol.vue
+++ b/src/views/map/mapdraft/mapedit/mapoperate/stationcontrol.vue
@@ -1,14 +1,16 @@
-
+
-
- {{ $t('map.updateObj') }}
- {{ $t('map.deleteObj') }}
-
+
+
+ {{ $t('map.updateObj') }}
+ {{ $t('map.deleteObj') }}
+
+
@@ -25,9 +27,11 @@
-
- {{ $t('map.create') }}
-
+
+
+ {{ $t('map.create') }}
+
+
@@ -92,12 +96,16 @@ export default {
const form = {
labelWidth: '160px',
items: {
+ code: {
+ name: '',
+ item: []
+ },
draw: {
name: this.$t('map.drawData'),
item: [
- { prop: 'stationCode', label: this.$t('map.equipmentStation'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.stationList },
{ prop: 'code', label: this.$t('map.stationControlCode'), type: 'select', optionLabel: 'code', optionValue: 'code', options: this.stationControlList, change: true, deviceChange: this.deviceChange },
{ prop: 'name', label: this.$t('map.stationControlName'), type: 'input' },
+ { prop: 'stationCode', label: this.$t('map.equipmentStation'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.stationList },
{ prop: 'zokContent', label: this.$t('map.zokContent'), type: 'input' },
{ prop: 'zakContent', label: this.$t('map.zakContent'), type: 'input' },
{ prop: 'jjzkContent', label: this.$t('map.jjzkContent'), type: 'input' },
@@ -270,4 +278,9 @@ export default {
diff --git a/src/views/map/mapdraft/mapedit/mapoperate/stationstand.vue b/src/views/map/mapdraft/mapedit/mapoperate/stationstand.vue
index 25533df4f..2b0809ad3 100644
--- a/src/views/map/mapdraft/mapedit/mapoperate/stationstand.vue
+++ b/src/views/map/mapdraft/mapedit/mapoperate/stationstand.vue
@@ -1,14 +1,16 @@
-
+
-
- {{ $t('map.updateObj') }}
- {{ $t('map.deleteObj') }}
-
+
+
+ {{ $t('map.updateObj') }}
+ {{ $t('map.deleteObj') }}
+
+
@@ -48,9 +50,11 @@
-
- {{ $t('map.create') }}
-
+
+
+ {{ $t('map.create') }}
+
+
@@ -122,12 +126,16 @@ export default {
const form = {
labelWidth: '130px',
items: {
+ code: {
+ name: '',
+ item: []
+ },
draw: {
name: this.$t('map.drawData'),
item: [
- { prop: 'deviceStationCode', label: this.$t('map.equipmentStation'), type: 'select', optionLabel: 'name', optionValue: 'code', options: this.stationList },
- { prop: 'code', label: this.$t('map.relStandCode'), type: 'select', optionLabel: 'code&&name', optionValue: 'code', options: this.stationStandList, change: true, deviceChange: this.deviceChange },
+ { prop: 'code', label: this.$t('map.relStandCode'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.stationStandList, change: true, deviceChange: this.deviceChange },
{ prop: 'name', label: this.$t('map.stationstandNameColon'), type: 'input', disabled: true },
+ { prop: 'deviceStationCode', label: this.$t('map.equipmentStation'), type: 'select', optionLabel: 'name', optionValue: 'code', options: this.stationList },
{ prop: 'direction', label: this.$t('map.stationstandTopBottom'), type: 'select', optionLabel: 'name', optionValue: 'code', options: this.RunDirectionTypeList },
{ prop: 'visible', label: this.$t('map.stationVisible'), type: 'checkbox' },
{ prop: 'nameShow', label: this.$t('map.stationstandShowName'), type: 'checkbox' },
@@ -176,10 +184,10 @@ export default {
{ required: true, message: this.$t('rules.stationstandHeight'), trigger: 'change' }
],
'position.x': [
- { required: true, message: this.$t('rule.stationstandPositionX'), trigger: 'change' }
+ { required: true, message: this.$t('rules.trainPositionX'), trigger: 'change' }
],
'position.y': [
- { required: true, message: this.$t('rule.stationstandPositionY'), trigger: 'change' }
+ { required: true, message: this.$t('rules.trainPositionY'), trigger: 'change' }
]
};
// 清空表单验证提示信息
@@ -332,4 +340,9 @@ export default {
diff --git a/src/views/map/mapdraft/mapedit/mapoperate/switch.vue b/src/views/map/mapdraft/mapedit/mapoperate/switch.vue
index c984f34fb..3de885a33 100644
--- a/src/views/map/mapdraft/mapedit/mapoperate/switch.vue
+++ b/src/views/map/mapdraft/mapedit/mapoperate/switch.vue
@@ -1,14 +1,16 @@
-
+
-
- {{ $t('map.updateObj') }}
- {{ $t('map.deleteObj') }}
-
+
+
+ {{ $t('map.updateObj') }}
+ {{ $t('map.deleteObj') }}
+
+
@@ -25,9 +27,11 @@
-
- {{ $t('map.create') }}
-
+
+
+ {{ $t('map.create') }}
+
+
@@ -97,12 +101,16 @@ export default {
const form = {
labelWidth: '170px',
items: {
+ code: {
+ name: '',
+ item: []
+ },
draw: {
name: this.$t('map.drawData'),
item: [
- { prop: 'stationCode', label: this.$t('map.equipmentStation'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.stationList },
{ prop: 'code', label: this.$t('map.switchCode'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.switchList, change: true, deviceChange: this.deviceChange },
{ prop: 'name', label: this.$t('map.switchName'), type: 'input' },
+ { prop: 'stationCode', label: this.$t('map.equipmentStation'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.stationList },
{ prop: 'nameShow', label: this.$t('map.switchShowName'), type: 'checkbox' },
{ prop: 'namePoint.x', firstLevel: 'namePoint', secondLevel: 'x', label: this.$t('map.switchPositionX'), type: 'number', placeholder: 'px' },
{ prop: 'namePoint.y', firstLevel: 'namePoint', secondLevel: 'y', label: this.$t('map.switchPositionY'), type: 'number', placeholder: 'px' },
@@ -410,7 +418,11 @@ export default {
diff --git a/src/views/map/mapdraft/mapedit/mapoperate/train/index.vue b/src/views/map/mapdraft/mapedit/mapoperate/train/index.vue
index 9b6f43326..cc21ba5eb 100644
--- a/src/views/map/mapdraft/mapedit/mapoperate/train/index.vue
+++ b/src/views/map/mapdraft/mapedit/mapoperate/train/index.vue
@@ -1,63 +1,26 @@
-
-
+
-
+
删除
-
-
- 创建
-
+
+
+
+
+ 创建
+
+
@@ -214,4 +177,9 @@ export default {
diff --git a/src/views/map/mapdraft/mapedit/mapoperate/trainmodel.bak.vue b/src/views/map/mapdraft/mapedit/mapoperate/trainmodel.bak.vue
deleted file mode 100644
index 93244cbaa..000000000
--- a/src/views/map/mapdraft/mapedit/mapoperate/trainmodel.bak.vue
+++ /dev/null
@@ -1,186 +0,0 @@
-
-
-
-
-
-
-
-
-
- 米
-
-
- 米
-
-
- 米
-
-
- km/h
-
-
- km/h
-
-
- km/h
-
-
- km/h
-
-
-
-
-
-
-
-
-
diff --git a/src/views/map/mapdraft/mapedit/mapoperate/trainwindow.vue b/src/views/map/mapdraft/mapedit/mapoperate/trainwindow.vue
index 421f99f35..fb49bd227 100644
--- a/src/views/map/mapdraft/mapedit/mapoperate/trainwindow.vue
+++ b/src/views/map/mapdraft/mapedit/mapoperate/trainwindow.vue
@@ -1,14 +1,16 @@
-
+
-
- {{ $t('map.updateObj') }}
- {{ $t('map.deleteObj') }}
-
+
+
+ {{ $t('map.updateObj') }}
+ {{ $t('map.deleteObj') }}
+
+
@@ -28,9 +30,11 @@
:titles="['Section集合', '选择Section']"
/>
-
- {{ $t('map.create') }}
-
+
+
+ {{ $t('map.create') }}
+
+
@@ -126,6 +130,10 @@ export default {
const form = {
labelWidth: '120px',
items: {
+ code: {
+ name: '',
+ item: []
+ },
draw: {
name: this.$t('map.drawData'),
item: [
@@ -362,4 +370,9 @@ export default {
diff --git a/src/views/map/mapdraft/mapedit/mapoperate/zcControl.vue b/src/views/map/mapdraft/mapedit/mapoperate/zcControl.vue
index 32686ad7d..e83a5d499 100644
--- a/src/views/map/mapdraft/mapedit/mapoperate/zcControl.vue
+++ b/src/views/map/mapdraft/mapedit/mapoperate/zcControl.vue
@@ -1,22 +1,26 @@
-
+
-
- {{ $t('map.updateObj') }}
- {{ $t('map.deleteObj') }}
-
+
+
+ {{ $t('map.updateObj') }}
+ {{ $t('map.deleteObj') }}
+
+
-
- {{ $t('map.create') }}
-
+
+
+ {{ $t('map.create') }}
+
+
@@ -98,10 +102,14 @@ export default {
const form = {
labelWidth: '150px',
items: {
+ code: {
+ name: '',
+ item: []
+ },
draw: {
name: this.$t('map.drawData'),
item: [
- { prop: 'code', label: this.$t('map.code'), type: 'select', optionLabel: 'code', optionValue: 'code', options: this.zcList, change: true, deviceChange: this.deviceChange },
+ { prop: 'code', label: this.$t('map.code'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.zcList, change: true, deviceChange: this.deviceChange },
{ prop: 'name', label: this.$t('map.statusSignalName'), type: 'input' },
{ prop: 'visible', label: this.$t('map.showZc'), type: 'checkboxx' },
{ prop: 'position', label: this.$t('map.stateSignalsPlotCoordinates'), type: 'coordinate', width: '140px', children: [
@@ -241,7 +249,11 @@ export default {