修复时间格式化问题
This commit is contained in:
@@ -313,6 +313,14 @@ export default {
|
|||||||
this.editDialog = true;
|
this.editDialog = true;
|
||||||
},
|
},
|
||||||
editDialogClick() {
|
editDialogClick() {
|
||||||
|
let startTime = this.resource.startTime;
|
||||||
|
if (startTime) {
|
||||||
|
this.resource.startTime = new Date(startTime).format("yyyy-MM-dd hh:mm:ss");
|
||||||
|
}
|
||||||
|
let endTime = this.resource.endTime;
|
||||||
|
if (endTime) {
|
||||||
|
this.resource.endTime = new Date(endTime).format("yyyy-MM-dd hh:mm:ss");
|
||||||
|
}
|
||||||
saveResource({
|
saveResource({
|
||||||
id: this.resource.id,
|
id: this.resource.id,
|
||||||
name: this.resource.name,
|
name: this.resource.name,
|
||||||
|
@@ -274,6 +274,14 @@ export default {
|
|||||||
this.editDialog = true;
|
this.editDialog = true;
|
||||||
},
|
},
|
||||||
editDialogClick() {
|
editDialogClick() {
|
||||||
|
let startTime = this.resource.startTime;
|
||||||
|
if (startTime) {
|
||||||
|
this.resource.startTime = new Date(startTime).format("yyyy-MM-dd hh:mm:ss");
|
||||||
|
}
|
||||||
|
let endTime = this.resource.endTime;
|
||||||
|
if (endTime) {
|
||||||
|
this.resource.endTime = new Date(endTime).format("yyyy-MM-dd hh:mm:ss");
|
||||||
|
}
|
||||||
saveResource({
|
saveResource({
|
||||||
id: this.resource.id,
|
id: this.resource.id,
|
||||||
name: this.resource.name,
|
name: this.resource.name,
|
||||||
|
Reference in New Issue
Block a user