记得上下班打卡 | git大法好,push需谨慎

Commit a5eda37a authored by 张国柄's avatar 张国柄

opt;

parent b9be2f07
...@@ -127,14 +127,14 @@ ...@@ -127,14 +127,14 @@
field: 'paymentAt', field: 'paymentAt',
title: '支付时间', title: '支付时间',
formatter: function (value, row, index) { formatter: function (value, row, index) {
return $.common.sprintf("<span>%s</span>", value.substring(0, 19)); return $.common.sprintf("<span>%s</span>", null != value ? value.substring(0, 19) : value);
} }
}, },
{ {
field: 'createdAt', field: 'createdAt',
title: '创建时间', title: '创建时间',
formatter: function (value, row, index) { formatter: function (value, row, index) {
return $.common.sprintf("<span>%s</span>", value.substring(0, 19)); return $.common.sprintf("<span>%s</span>", null != value ? value.substring(0, 19) : value);
} }
}, },
{ {
......
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
title: '生成时间', title: '生成时间',
sortable: true, sortable: true,
formatter: function (value, row, index) { formatter: function (value, row, index) {
return $.common.sprintf("<span>%s</span>", value.substring(0, 19)); return $.common.sprintf("<span>%s</span>", null != value ? value.substring(0, 19) : value);
} }
}, },
{ {
......
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
title: '生成时间', title: '生成时间',
sortable: true, sortable: true,
formatter: function (value, row, index) { formatter: function (value, row, index) {
return $.common.sprintf("<span>%s</span>", value.substring(0, 19)); return $.common.sprintf("<span>%s</span>", null != value ? value.substring(0, 19) : value);
} }
}, },
{ {
......
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
title: '生成时间', title: '生成时间',
sortable: true, sortable: true,
formatter: function (value, row, index) { formatter: function (value, row, index) {
return $.common.sprintf("<span>%s</span>", value.substring(0, 19)); return $.common.sprintf("<span>%s</span>", null != value ? value.substring(0, 19) : value);
} }
}, },
{ {
......
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
title: '生成时间', title: '生成时间',
sortable: true, sortable: true,
formatter: function (value, row, index) { formatter: function (value, row, index) {
return $.common.sprintf("<span>%s</span>", value.substring(0, 19)); return $.common.sprintf("<span>%s</span>", null != value ? value.substring(0, 19) : value);
} }
}, },
{ {
......
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