Commit 57d61e59 by 怪兽?别跑

离职继承日期格式化

1 parent ec75008f
<script> <script>
import { getListTable } from '@/api/customer/dimission' import { getListTable } from '@/api/customer/dimission'
import { dateFormat } from '@/utils/index'
export default { export default {
name: 'AllocatedStaffList', name: 'AllocatedStaffList',
...@@ -30,6 +31,9 @@ ...@@ -30,6 +31,9 @@
}, },
mounted() {}, mounted() {},
methods: { methods: {
setDate(date) {
return dateFormat(new Date(date))
},
/** 查询 */ /** 查询 */
getList(page) { getList(page) {
if (this.dateRange) { if (this.dateRange) {
...@@ -94,7 +98,7 @@ ...@@ -94,7 +98,7 @@
<el-table-column prop="allocateCustomerNum" label="已分配客户数" show-overflow-tooltip></el-table-column> <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="allocateGroupNum" label="已分配群聊数" show-overflow-tooltip></el-table-column>
<el-table-column prop="dimissionTime" label="离职时间" show-overflow-tooltip> <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>
<el-table-column label="操作" width="100"> <el-table-column label="操作" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
......
<script> <script>
import * as api from '@/api/customer/dimission' import * as api from '@/api/customer/dimission'
import SelectWeUser from '@/components/SelectWeUser' import SelectWeUser from '@/components/SelectWeUser'
import { dateFormat } from '@/utils/index'
export default { export default {
name: 'Dimission', name: 'Dimission',
components: { SelectWeUser }, components: { SelectWeUser },
...@@ -44,6 +44,9 @@ ...@@ -44,6 +44,9 @@
}, },
mounted() {}, mounted() {},
methods: { methods: {
setDate(date) {
return dateFormat(new Date(date))
},
/** 查询 */ /** 查询 */
getList(page) { getList(page) {
if (this.dateRange) { if (this.dateRange) {
...@@ -188,7 +191,7 @@ ...@@ -188,7 +191,7 @@
<el-table-column prop="allocateCustomerNum" label="待分配客户数" show-overflow-tooltip></el-table-column> <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="allocateGroupNum" label="待分配群聊数" show-overflow-tooltip></el-table-column>
<el-table-column prop="dimissionTime" label="离职时间" show-overflow-tooltip> <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>
<!-- <el-table-column label="操作" width="100"> <!-- <el-table-column label="操作" width="100">
<template slot-scope="scope"> <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!