这是数据模板:
return {
plans: [
{
gate: 'Gate1 - 产品策划',
childrens: [
{
gate: '市场信息调研',
starTime: '2017-11-10',
endTime: '2017-11-15',
show: true,
remarks: [
{
content: 'xxxxxxxx'
},
{
content: 'xxxxxxxx'
}
]
},
{
gate: 'kick-off meeting',
starTime: '2017-11-10',
endTime: '2017-11-15',
show: true,
remarks: [
{
content: 'xxxxxx'
},
{
content: 'xxxxxxxxx'
}
]
},
]
},
{
gate: 'Gate2 - 产品技术需求和项目规划阶段',
childrens: [
{
gate: '完成PRD',
starTime: '2017-11-10',
endTime: '2017-11-15',
show: true,
remarks: [
{
content: 'xxxxxx'
},
{
content: 'xxxxxx'
}
]
},
{
gate: '关键物料准备',
starTime: '2017-11-10',
endTime: '2017-11-15',
show: true,
remarks: [
{
content: 'xxxxxx'
},
{
content: 'xxxxxx'
}
]
},
{
gate: 'Gate Review',
starTime: '2017-11-10',
endTime: '2017-11-15',
show: true,
remarks: []
},
]
},
]
}
这个是页面:
页面上的开始时间和结束时间是分别绑定到starTime和endTime上的,我要怎么监听到starTime和endTime的变动呢?并且重新选择时间后我要怎么赋值?