修复 门店管理页面 列表中 营业时间显示成日期的问题
This commit is contained in:
1 parent
64e4586748
commit
73e2d7a058
1 file changed
+12
-1
@@ -202,13 +202,24 @@ export function dateFormatter(_row: any, _column: TableColumnCtx<any>, cellValue
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* element plus 的时间 Formatter 实现,使用 YYYY-MM-DD 格式
|
* element plus 的时间 Formatter 实现,使用 HH:mm:ss 格式
|
||||||
*
|
*
|
||||||
* @param row 行数据
|
* @param row 行数据
|
||||||
* @param column 字段
|
* @param column 字段
|
||||||
* @param cellValue 字段值
|
* @param cellValue 字段值
|
||||||
*/
|
*/
|
||||||
export function dateFormatter2(_row: any, _column: TableColumnCtx<any>, cellValue: any): string {
|
export function dateFormatter2(_row: any, _column: TableColumnCtx<any>, cellValue: any): string {
|
||||||
|
return cellValue ? formatDate(cellValue, 'HH:mm:ss') : ''
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* element plus 的时间 Formatter 实现,使用 YYYY-MM-DD 格式
|
||||||
|
*
|
||||||
|
* @param row 行数据
|
||||||
|
* @param column 字段
|
||||||
|
* @param cellValue 字段值
|
||||||
|
*/
|
||||||
|
export function dateFormatter3(_row: any, _column: TableColumnCtx<any>, cellValue: any): string {
|
||||||
return cellValue ? formatDate(cellValue, 'YYYY-MM-DD') : ''
|
return cellValue ? formatDate(cellValue, 'YYYY-MM-DD') : ''
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user