当前位置:网站首页>Used in time filter (EL table)
Used in time filter (EL table)
2022-06-25 12:57:00 【cc&】
1.main,js catalog filter
// Define a filter
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 Use in
<el-table-column label=" Order time " prop="create_time" width="180px">
<template slot-scope="scope">
{
{scope.row.create_time |dateFormat}}
</template>
</el-table-column>边栏推荐
- 剑指 Offer II 025. 链表中的两数相加
- 地理空间搜索 ->R树索引
- Parse JSON format data and save it to entity class
- 康威定律,作为架构师还不会灵活运用?
- Render values to corresponding text
- Elemtnui select control combined with tree control to realize user-defined search method
- Meichuang was selected into the list of "2022 CCIA top 50 Chinese network security competitiveness"
- nacos无法修改配置文件Mysql8.0的解决方法
- 2021-09-02
- Common colors for drawing
猜你喜欢

The drop-down box renders numbers instead of the corresponding text. How to deal with it

CUDA error: unspecified launch failure

3+1保障:高可用系统稳定性是如何炼成的?

高性能负载均衡架构如何实现?

Optimal solution for cold start

C program linking SQLSERVER database: instance failed
![Select randomly by weight [prefix and + dichotomy + random target]](/img/84/7f930f55f8006a4bf6e23ef05676ac.png)
Select randomly by weight [prefix and + dichotomy + random target]
![最大数[抽象排序之抽象规则]](/img/47/f6bafacc95f487854a3e304325f3f0.png)
最大数[抽象排序之抽象规则]

Talk about 11 key techniques of high availability

Koa 框架
随机推荐
架构师需要具备的能力
[flask tutorial] flask overview
CUDA error: unspecified launch failure
JS uses the for loop in the function to insert and delete the array at the specified position
el-select clear 清空内容时触发事件
3+1保障:高可用系统稳定性是如何炼成的?
Why are databases cloud native?
Three jobs! You can learn this from me (attached with graduation vlog)
5 kinds of viewer for browser
20220620 面试复盘
三入职场!你可以从我身上学到这些(附毕业Vlog)
AI assisted paper drawing of PPT drawing
Resolved: could not find artifact XXX
QT TCP UDP network communication < theory >
[data visualization] 360 ° teaching you how to comprehensively learn visualization - Part 1
Differences between JS and JQ operation objects
[AI helps scientific research] fool drawing of loss curve
Resolution of PPT paper drawing
顺序表的折半查找法
A half search method for sequential tables