Commit d0b635e2 authored by 张俊's avatar 张俊

异常时间数据兼容

parent 9d030f39
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment