Commit 57d61e59 by 怪兽?别跑

离职继承日期格式化

1 parent ec75008f
<script>
import { getListTable } from '@/api/customer/dimission'
import { dateFormat } from '@/utils/index'
export default {
name: 'AllocatedStaffList',
......@@ -30,6 +31,9 @@
},
mounted() {},
methods: {
setDate(date) {
return dateFormat(new Date(date))
},
/** 查询 */
getList(page) {
if (this.dateRange) {
......@@ -94,7 +98,7 @@
<el-table-column prop="allocateCustomerNum" label="已分配客户数" show-overflow-tooltip></el-table-column>
<el-table-column prop="allocateGroupNum" label="已分配群聊数" show-overflow-tooltip></el-table-column>
<el-table-column prop="dimissionTime" label="离职时间" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.dimissionTime }}</template>
<template slot-scope="scope">{{ setDate(scope.row.dimissionTime) }}</template>
</el-table-column>
<el-table-column label="操作" width="100">
<template slot-scope="scope">
......
<script>
import * as api from '@/api/customer/dimission'
import SelectWeUser from '@/components/SelectWeUser'
import { dateFormat } from '@/utils/index'
export default {
name: 'Dimission',
components: { SelectWeUser },
......@@ -44,6 +44,9 @@
},
mounted() {},
methods: {
setDate(date) {
return dateFormat(new Date(date))
},
/** 查询 */
getList(page) {
if (this.dateRange) {
......@@ -188,7 +191,7 @@
<el-table-column prop="allocateCustomerNum" label="待分配客户数" show-overflow-tooltip></el-table-column>
<el-table-column prop="allocateGroupNum" label="待分配群聊数" show-overflow-tooltip></el-table-column>
<el-table-column prop="dimissionTime" label="离职时间" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.dimissionTime }}</template>
<template slot-scope="scope">{{ setDate(scope.row.dimissionTime) }}</template>
</el-table-column>
<!-- <el-table-column label="操作" width="100">
<template slot-scope="scope">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!