vue el-date-picker 选择年月
数据库类型:datetimeEntity类型:Timestamp页面查询框月份范围选择<el-date-pickerv-model="query.birthday":default-time="['00:00:00','23:59:59']"type="monthrange"range-separator=":"size="small"class="date-ite
·
数据库类型:datetime
Entity类型:Timestamp
页面查询框月份范围选择
<el-date-picker
v-model="query.birthday"
:default-time="['00:00:00','23:59:59']"
type="monthrange"
range-separator=":"
size="small"
class="date-item"
format="yyyy-MM"
value-format="yyyy-MM-dd HH:mm:ss"
start-placeholder="出生年月起始"
end-placeholder="出生年月截止"
/>
table列表:
<el-table-column :show-overflow-tooltip="true" prop="birthday" label="出生年月">
<template slot-scope="scope">
<span>{{ formatDate(scope.row.birthday,'yyyy-MM') }}</span>
</template>
</el-table-column>
表单录入框:
<el-form-item label="出生年月">
<el-date-picker v-model="form.birthday" type="month" format="yyyy-MM" style="width: 370px;" :disabled="readonly||(form.enabled==1)"/>
</el-form-item>
更多推荐
已为社区贡献4条内容
所有评论(0)