diff --git a/src/views/post/PostEdit.vue b/src/views/post/PostEdit.vue
index 0793e8e6..698b4703 100644
--- a/src/views/post/PostEdit.vue
+++ b/src/views/post/PostEdit.vue
@@ -288,6 +288,10 @@ export default {
},
computed: {
pickerDefaultValue() {
+ if (this.postToStage.createTime) {
+ var date = new Date(this.postToStage.createTime)
+ return moment(date, 'YYYY-MM-DD HH:mm:ss')
+ }
return moment(new Date(), 'YYYY-MM-DD HH:mm:ss')
}
},
diff --git a/src/views/sheet/SheetEdit.vue b/src/views/sheet/SheetEdit.vue
index 399dcedd..0d1e4c92 100644
--- a/src/views/sheet/SheetEdit.vue
+++ b/src/views/sheet/SheetEdit.vue
@@ -57,6 +57,18 @@
关闭
+
+
+
{
@@ -274,6 +296,12 @@ export default {
this.$message.error('图片上传失败:' + responseObject.message)
}
})
+ },
+ onChange(value, dateString) {
+ this.sheetToStage.createTime = value.valueOf()
+ },
+ onOk(value) {
+ this.sheetToStage.createTime = value.valueOf()
}
}
}