Commit 0c48e395 authored by 张俊's avatar 张俊

banner编辑时间格式转换

parent b83b9abb
......@@ -158,6 +158,7 @@ export default {
}
};
var validatedown = (rule, value, callback) => {
console.log(value);
if (value === '') {
callback(new Error('请选择下架时间'));
} else if (value.getTime() <= this.detail.up_time.getTime()) {
......@@ -301,8 +302,8 @@ var validatedown = (rule, value, callback) => {
state: detail.state,
url: detail.url,
rank: detail.ordid,
up_time: detail.up_time,
down_time: detail.down_time,
up_time: new Date(detail.up_time),
down_time: new Date(detail.down_time),
fileList: detail.image_url,
size: detail.image_size,
id: detail.serial_num,
......
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