From d0b635e215c79891e0eed1c73f16c90245be0c62 Mon Sep 17 00:00:00 2001 From: zhangjun1 Date: Tue, 18 Aug 2020 11:48:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=82=E5=B8=B8=E6=97=B6=E9=97=B4=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=85=BC=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/workbench/workPlace.vue | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/pages/workbench/workPlace.vue b/src/pages/workbench/workPlace.vue index ff4c5b0..0ffdeee 100644 --- a/src/pages/workbench/workPlace.vue +++ b/src/pages/workbench/workPlace.vue @@ -1164,11 +1164,15 @@ export default { } else { this.app_data = data; this.app_data.forEach(e => { - if (e.create_date) { + if (e.create_date&&e.create_date!=='0001-01-01T00:00:00Z') { e.create_date = e.create_date.split(".")[0].replace("T", " "); + }else{ + e.create_date = '' } - if (e.time) { + if (e.time&&e.time!=='0001-01-01T00:00:00Z') { e.time = e.time.split(".")[0].replace("T", " "); + }else{ + e.time = '' } }); this.listTotal1 = response.data.total; @@ -1216,11 +1220,13 @@ export default { }else{ this.service_data = data.data; this.service_data.forEach(e => { - if (e.create_time) { + if (e.create_time&&e.create_time!=='0001-01-01T00:00:00Z') { e.create_time = helper.dateStringTransform(e.create_time) + }else{ + e.create_time = '' } - if (e.service_apply_info && e.service_apply_info.approval_time) { + if (e.service_apply_info && e.service_apply_info.approval_time&& e.service_apply_info.approval_time!=='0001-01-01T00:00:00Z') { e.approval_time = helper.dateStringTransform( e.service_apply_info.approval_time ); @@ -1228,7 +1234,7 @@ export default { e.approval_time = ""; } - if (e.service_apply_info && e.service_apply_info.apply_time) { + if (e.service_apply_info && e.service_apply_info.apply_time&& e.service_apply_info.apply_time!=='0001-01-01T00:00:00Z') { e.apply_time = helper.dateStringTransform( e.service_apply_info.apply_time ); @@ -1236,7 +1242,7 @@ export default { e.apply_time = ""; } - if (e.service_apply_info && e.service_apply_info.approval_status) { + if (e.service_apply_info && e.service_apply_info.approval_status&& e.service_apply_info.approval_status!=='0001-01-01T00:00:00Z') { if (this.now_user !== 0 && this.now_user !== 4) { e.approval_status = ["-", "已审批", "待审批"][ e.service_apply_info.approval_status -- 2.26.0