当前位置:网站首页>时间过滤器(el-table)中使用
时间过滤器(el-table)中使用
2022-06-25 12:20:00 【cc&】
1.main,js设置过滤器
// 定义一个过滤器
Vue.filter('dateFormat', function(originVal) {
const dt = new Date(originVal)
const y = dt.getFullYear()
const m = (dt.getMonth() + 1 + '').padStart(2, '0')
const d = (dt.getDate() + '').padStart(2, '0')
const hh = (dt.getHours() + '').padStart(2, '0')
const mm = (dt.getMinutes() + '').padStart(2, '0')
const ss = (dt.getSeconds() + '').padStart(2, '0')
return `${y}-${m}-${d} ${hh}:${mm}:${ss}`
})2.table中使用
<el-table-column label="下单时间" prop="create_time" width="180px">
<template slot-scope="scope">
{
{scope.row.create_time |dateFormat}}
</template>
</el-table-column>边栏推荐
- (2) Pyqt5 tutorial -- > using qtdesigner to separate interface code
- Shell learning notes (latest update: 2022-02-18)
- Possible problems when idea encounters errors occurred while compiling module (solved)
- 地理空间搜索 ->R树索引
- Jenkins Pipeline使用
- Jupyter notebook theme font setting and automatic code completion
- (3) Pyqt5 tutorial -- > signal and slot preliminary test
- yolov5训练使用的负样本图片
- Oracle trigger error report table or view does not exist
- Figure explanation of fiborache sequence
猜你喜欢

更新pip&下载jupyter lab

20220620 面试复盘

Drawing cubes with Visio

(3) Pyqt5 tutorial -- > signal and slot preliminary test

Go novice exploration road 1

@Scheduled implementation of scheduled tasks (concurrent execution of multiple scheduled tasks)

My first experience of go+ language -- a collection of notes on learning go+ design architecture

深圳民太安智能二面_秋招第一份offer

PPT绘论文图之导出分辨率

PPT绘图之AI助力论文图
随机推荐
CUDA error: unspecified launch failure
美创入选“2022 CCIA中国网络安全竞争力50强”榜单
Circular exercises of JS
英语口语 - 连读
三入职场!你可以从我身上学到这些(附毕业Vlog)
The amount is verified, and two zeros are spliced by integers during echo
Oral English - continuous reading
Three jobs! You can learn this from me (attached with graduation vlog)
量化交易之回测篇 - 期货CTA策略策略(TQZFutureRenkoWaveStrategy)
yolov5训练使用的负样本图片
Figure explanation of fiborache sequence
torch. Tensor splicing and list (tensors)
Update PIP & Download jupyter Lab
Resolution of PPT paper drawing
RESTful和RPC
JS picture switching (simple and practical)
聊聊高可用的 11 个关键技巧
The drop-down box renders numbers instead of the corresponding text. How to deal with it
最大数[抽象排序之抽象规则]
Module 5 (microblog comments)