diff --git a/src/jmapNew/theme/xian_02/menus/dialog/trainDestination.vue b/src/jmapNew/theme/xian_02/menus/dialog/trainDestination.vue index 2dea091f2..7f128a5d8 100644 --- a/src/jmapNew/theme/xian_02/menus/dialog/trainDestination.vue +++ b/src/jmapNew/theme/xian_02/menus/dialog/trainDestination.vue @@ -156,9 +156,9 @@ export default { res.data.forEach(item => { const lable = this.typeList.find(ele => ele.value == item.type); item['active'] = false; - item['name'] = `${item.code} ${item.description} ${lable.label}`; - item['code'] = `0000${item.code}`; - item['code'] = item['code'].substring(item['code'].length - 4); + let code = `0000${item.code}`; + code = code.substring(code.length - 4); + item['name'] = `${code} ${item.description} ${lable.label}`; // if (this.optionObject[item.type]) { // this.optionObject[item.type].push(item); // } else {