fix:日志获取服务器时间

This commit is contained in:
shijing 2025-10-11 15:04:32 +08:00
parent 410fb7f34a
commit 805ff13f79
2 changed files with 12 additions and 2 deletions

View File

@ -322,7 +322,12 @@ export default {
mounted() {
let that = this;
this.route_code = this.$route.path.split("/")[2];
this.form.work_start_time = this.$TOOL.dateFormat(new Date());
// this.form.work_start_time = this.$TOOL.dateFormat(new Date());
if(that.mode=='add'){
that.$API.ops.server_time.get.req().then((res) => {
that.form.work_start_time = res.server_time;
})
}
this.getRoute();
this.getSupplier();
this.getEquipment();

View File

@ -250,7 +250,7 @@ export default {
let that = this;
this.route_code = this.$route.path.split("/")[2];
this.form.handle_date = this.$TOOL.dateFormat2(new Date());
this.form.work_start_time = this.$TOOL.dateFormat(new Date());
// this.form.work_start_time = this.$TOOL.dateFormat(new Date());
this.form.mgroup = this.mgroup;
this.getMaterial();
this.getRoute();
@ -259,6 +259,11 @@ export default {
if(that.route_code=='tuomoceliang'){
//
}
if(that.mode=='add'){
that.$API.ops.server_time.get.req().then((res) => {
that.form.work_start_time = res.server_time;
})
}
setTimeout(()=>{
let inputDom = document.querySelectorAll('.inputWrap .el-input__wrapper .el-input__inner');
inputDom.forEach(function(input) {