一、template
<el-date-picker
placeholder="开始时间"
v-model="value[0]"
type="datetime"
>
</el-date-picker
><span>至</span>
<el-date-picker
:placeholder="结束时间"
v-model="value[1]"
type="datetime"
>
</el-date-picker>
<p>
<span
>时长{
{
"(" +
unit +
"):" +
dateConver(
value,
unit