|
@@ -29,12 +29,12 @@
|
|
|
<el-table-column label="当前处理" width="180" align="center" prop="name"/>
|
|
|
<el-table-column label="创建时间" width="180" align="center" prop="createTime" >
|
|
|
<template slot-scope="scope">
|
|
|
- <span>{{scope.row.createTime | format('yyyy-MM-dd hh:mm')}}</span>
|
|
|
+ <span>{{scope.row.createTime | timefilters}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="办理时间" width="180" align="center" prop="endTime" >
|
|
|
<template slot-scope="scope">
|
|
|
- <span>{{scope.row.endTime | format('yyyy-MM-dd hh:mm')}}</span>
|
|
|
+ <span>{{scope.row.endTime | timefilters}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" width="200" align="center" class-name="small-padding fixed-width" >
|
|
@@ -76,12 +76,12 @@
|
|
|
<el-table-column label="审批人员" width="180"align="center" prop="assigneeName"/>
|
|
|
<el-table-column label="到达时间" align="center" prop="startTime">
|
|
|
<template slot-scope="scope">
|
|
|
- <span>{{scope.row.startTime | format('yyyy-MM-dd hh:mm')}}</span>
|
|
|
+ <span>{{scope.row.startTime | timefilters}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="审批时间" align="center" prop="endTime">
|
|
|
<template slot-scope="scope">
|
|
|
- <span>{{scope.row.endTime | format('yyyy-MM-dd hh:mm')}}</span>
|
|
|
+ <span>{{scope.row.endTime | timefilters}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="审批耗时" width="180" align="center" prop="activityType">
|
|
@@ -112,9 +112,26 @@
|
|
|
import { havedInfo } from "@/api/activiti/form/fw";
|
|
|
import { recordImg, examineHistory } from '@/api/system/meapply/meapply'
|
|
|
import {getStartFormKey } from '@/api/activiti/process/startprocess'
|
|
|
-
|
|
|
+ import moment from "moment";
|
|
|
export default {
|
|
|
name: 'havedone',
|
|
|
+ filters: {
|
|
|
+ timefilters(val) {
|
|
|
+ if (val == null || val == "") {
|
|
|
+ return "暂无时间";
|
|
|
+ } else {
|
|
|
+ let d = new Date(val); //val 为表格内取到的后台时间
|
|
|
+ let month =
|
|
|
+ d.getMonth() + 1 < 10 ? "0" + (d.getMonth() + 1) : d.getMonth() + 1;
|
|
|
+ let day = d.getDate() < 10 ? "0" + d.getDate() : d.getDate();
|
|
|
+ let hours = d.getHours() < 10 ? "0" + d.getHours() : d.getHours();
|
|
|
+ let min = d.getMinutes() < 10 ? "0" + d.getMinutes() : d.getMinutes();
|
|
|
+ let sec = d.getSeconds() < 10 ? "0" + d.getSeconds() : d.getSeconds();
|
|
|
+ let times=d.getFullYear() + '-' + month + '-' + day + ' ' + hours + ':' + min + ':' + sec;
|
|
|
+ return moment(val).format("YYYY-MM-DD HH:mm")
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
data(){
|
|
|
return {
|
|
|
//流程遮罩层
|