变量未正确传递以形成

问题描述

我正在尝试用 0OTHXXGK1DCA19JUN 填充文本框保留 x 的值-谢谢。文本框中的信息停在 0OTHXXGK1DCA19JUN-谢谢它不会占用空间,您

Main.ts

const 保留日期 = '0OTHXXGK1DCA' + 日期服务.getNow().add(179,天').format('DDMMM').toupperCase() + '-谢谢';

getService(LayerService).showInModal(new PnrView({model: {retentionx: reservedDate}}),pnrOptions,{display: 'areaView'});

PNRView.html

<label>{{_t 'Retention'}}</label>
<input type="text" id="{{new-random 'retention-field'}}"
class="not-empty form-control input-form retention-field-cl"
value={{retentionx}}>

解决方法

该值需要“”。

<label>{{_t 'Retention'}}</label> <input type="text" id="{{new-random 'retention-field'}}" class="not-empty form-control input-form retention-field-cl" value="{{retentionx}}">