NEZ-1478 fix:Asset新建或编辑数据时,添加日期时间label保存报错

This commit is contained in:
zhangyu
2022-01-10 15:53:53 +08:00
parent 8b4c091278
commit 95bac7eb4e

View File

@@ -138,7 +138,7 @@
<template v-if="JSON.parse(label.param).interval">
<my-date-picker
id="asset-box-input-purchase-date"
v-model="label.value[0]"
v-model="label.value"
:type="JSON.parse(label.param).subType === assetConstants.labelSubTypeData.date ? 'dateRange' : 'datetimerange'"
placeholder=""
popper-class="right-box-select-top"