@@ -101,15 +108,22 @@ export default {
return {
activeName: 'first',
LineTypeList: [],
+ showConditionsList: [
+ { label: this.$t('map.localCenter'), value: '01'},
+ { label: this.$t('map.center'), value: '02' },
+ { label: this.$t('map.local'), value: '03'}
+ ],
editModel: {
code: '',
type: '',
width: 1,
+ showConditions: '01',
points: []
},
addModel: {
type: '',
width: 1,
+ showConditions: '01',
points: [
{ x: 0, y: 0 },
{ x: 100, y: 100 }
@@ -159,6 +173,7 @@ export default {
{ prop: 'code', label: this.$t('map.lineCoding'), type: 'select', optionLabel: 'code', optionValue: 'code', options: this.lineList, change: true, deviceChange: this.deviceChange },
{ prop: 'type', label: this.$t('map.lineType'), type: 'select', optionLabel: 'name', optionValue: 'code', options: this.LineTypeList },
{ prop: 'width', label: this.$t('map.lineWidth'), type: 'number', min: 1, placeholder: 'px' },
+ { prop: 'showConditions', label: this.$t('map.showConditions'), type: 'radio', optionLabel: 'label', optionValue:'value', radioList: this.showConditionsList},
{ prop: 'points', label: this.$t('map.segmentCoordinates'), type: 'points', width: '100px', isHidden: !this.isPointsShow, addPoint: this.addPoint, delPoint: this.delPoint }
]
},
diff --git a/src/views/newMap/newMapdraft/mapoperate/outFrameControl.vue b/src/views/newMap/newMapdraft/mapoperate/outFrameControl.vue
index 1443f11ee..486e8dbf1 100644
--- a/src/views/newMap/newMapdraft/mapoperate/outFrameControl.vue
+++ b/src/views/newMap/newMapdraft/mapoperate/outFrameControl.vue
@@ -102,10 +102,16 @@ export default {
return {
activeName: 'first',
LineTypeList: [],
+ showConditionsList: [
+ { label: this.$t('map.localCenter'), value: '01'},
+ { label: this.$t('map.center'), value: '02' },
+ { label: this.$t('map.local'), value: '03'}
+ ],
editModel: {
code: '',
width: 1,
height: 1,
+ showConditions: '01',
position: {
x: 0,
y: 0
@@ -115,6 +121,7 @@ export default {
code: '',
width: 200,
height: 100,
+ showConditions: '01',
position: {
x: 0,
y: 0
@@ -158,10 +165,11 @@ export default {
{ prop: 'code', label: this.$t('map.lineCoding'), type: 'select', optionLabel: 'code', optionValue: 'code', options: this.outerFrameList, change: true, deviceChange: this.deviceChange },
{ prop: 'width', label: '宽度:', type: 'number', min: 1, placeholder: 'px' },
{ prop: 'height', label: '高度:', type: 'number', min: 1, placeholder: 'px' },
+ { prop: 'showConditions', label: this.$t('map.showConditions'), type: 'radio', optionLabel: 'label', optionValue:'value', radioList: this.showConditionsList},
{ prop: 'position', label: '坐标:', type: 'coordinate', width: '140px', children: [
{ prop: 'position.x', firstLevel: 'position', secondLevel: 'x', label: 'x:', type: 'number', labelWidth: '20px' },
{ prop: 'position.y', firstLevel: 'position', secondLevel: 'y', label: 'y:', type: 'number', labelWidth: '20px' }
- ] },
+ ] }
]
}
}
@@ -177,14 +185,15 @@ export default {
item: [
{ prop: 'width', label: '宽度:', type: 'number', min: 1, placeholder: 'px' },
{ prop: 'height', label: '高度:', type: 'number', min: 1, placeholder: 'px' },
+ { prop: 'showConditions', label: this.$t('map.showConditions'), type: 'radio', optionLabel: 'label', optionValue:'value', radioList: this.showConditionsList},
{ prop: 'position', label: '坐标:', type: 'coordinate', width: '110px', children: [
{ prop: 'position.x', firstLevel: 'position', secondLevel: 'x', label: 'x:', type: 'number', labelWidth: '20px' },
{ prop: 'position.y', firstLevel: 'position', secondLevel: 'y', label: 'y:', type: 'number', labelWidth: '20px' }
- ] },
+ ] }
]
}
}
- }
+ };
},
isPointsShow() {
return this.editModel.points.length > 0;
diff --git a/src/views/newMap/newMapdraft/mapoperate/text.vue b/src/views/newMap/newMapdraft/mapoperate/text.vue
index 63ffcf263..393a95cfa 100644
--- a/src/views/newMap/newMapdraft/mapoperate/text.vue
+++ b/src/views/newMap/newMapdraft/mapoperate/text.vue
@@ -25,6 +25,13 @@
+
+
+ {{ $t('map.localCenter') }}
+ {{ $t('map.center') }}
+ {{ $t('map.local') }}
+
+
{{ $t('map.textPoints') }}