数据库类型: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>
Logo

前往低代码交流专区

更多推荐