diff --git a/src/views/newMap/newMapdraft/mapoperate/components/operateProperty.vue b/src/views/newMap/newMapdraft/mapoperate/components/operateProperty.vue index 1a1a64a8b..9767a6877 100644 --- a/src/views/newMap/newMapdraft/mapoperate/components/operateProperty.vue +++ b/src/views/newMap/newMapdraft/mapoperate/components/operateProperty.vue @@ -47,6 +47,9 @@ export default { this.$refs['dataform'].validate((valid) => { if (valid) { const data = Object.assign({_type: this.type}, this.editModel); + if (this.type == 'Text') { + data.content = `${this.editModel.prepend}::${this.editModel.content}`; + } this.$emit('updateMapModel', data); } else { this.$message('还有属性未填写,修改未生效!'); @@ -68,7 +71,7 @@ export default { this.$store.dispatch('map/delMapStandData', {models: [selected], type: 'espList'}); break; } - case 'StationStand': { + case 'StationStand': case 'TrainWindow': { this.$emit('updateMapModel', selected); break; } diff --git a/src/views/newMap/newMapdraft/mapoperate/text.vue b/src/views/newMap/newMapdraft/mapoperate/text.vue index f81cbf524..3958d4583 100644 --- a/src/views/newMap/newMapdraft/mapoperate/text.vue +++ b/src/views/newMap/newMapdraft/mapoperate/text.vue @@ -1,15 +1,14 @@