业务效果图
核心代码
<template>
<a-date-picker v-model='record.payTime' show-time autoclear placeholder='请选择付款时间' valueFormat='YYYY-MM-DD HH:mm:ss' />
</template>
<script>
import moment, { Moment } from 'moment';
current08Form.tableData.forEach((rowData) => {
let singlePay = {
attachmentIds: rowData.attachmentIds,
payMoney: rowData.payMoney,
payProportion: rowData.payProportion,
payTime: moment(rowData.payTime).format('YYYY-MM-DD HH:mm:ss'), // 格式化
};
projectsPayments.push(singlePay);
});
</script>
标签:picker,格式化,AntDesignVue,moment,rowData,选择器
From: https://www.cnblogs.com/openmind-ink/p/17195015.html