fix:光子日志添加work_start_time

This commit is contained in:
shijing 2025-10-10 16:16:17 +08:00
parent 62ed6a66bb
commit 205a5ddf4e
3 changed files with 13 additions and 0 deletions

View File

@ -683,6 +683,10 @@ export default {
open(mode = "add") { open(mode = "add") {
this.mode = mode; this.mode = mode;
this.visible = true; this.visible = true;
if(this.mode == "add"){
let date = new Date();
this.form.work_start_time = this.$TOOL.dateFormat1(date);
}
return this; return this;
}, },
countNotOkSun() { countNotOkSun() {

View File

@ -74,6 +74,10 @@ export default {
open(mode = "add") { open(mode = "add") {
this.mode = mode; this.mode = mode;
this.visible = true; this.visible = true;
if(this.mode == "add"){
let date = new Date();
this.form.work_start_time = this.$TOOL.dateFormat1(date);
}
return this; return this;
}, },
// //

View File

@ -1043,6 +1043,7 @@ export default {
count_break: 0, count_break: 0,
count_notok: 0, count_notok: 0,
mlogb: [], mlogb: [],
work_start_time: "",
}, },
mlogb: [], mlogb: [],
userList: [], userList: [],
@ -1303,6 +1304,10 @@ export default {
open(mode = "add") { open(mode = "add") {
this.mode = mode; this.mode = mode;
this.visible = true; this.visible = true;
if(this.mode == "add"){
let date = new Date();
this.form.work_start_time = this.$TOOL.dateFormat1(date);
}
return this; return this;
}, },
countNotOkSun() { countNotOkSun() {