快乐的昕的电脑
2025-10-31 96e5686d9f80fbd0742058f3781486cb2d05a612
components/machine.vue
@@ -197,7 +197,7 @@
                  break;
                    case 1:// 首次送检呼叫
                  this.maShoutTime = this.$getDate('yyyy-mm-dd hh24:mi:ss');
                  this.flag = -1; // 送检呼叫有值后,flag始终为-1
                  //this.flag = -1; // 送检呼叫有值后,flag始终为-1
                  break;
                    case 2:// 检验不合格重新送检呼叫
                        this.maShoutTime = this.$getDate('yyyy-mm-dd hh24:mi:ss');
@@ -229,7 +229,7 @@
            // 页面加载时,启动定时器,每隔5分钟自动保存
            this.autoSaveTimer = setInterval(() => {
                this.save(); // 直接调用已有的保存方法
            }, 1 * 60 * 1000); // 1分钟
            }, 1 * 30 * 1000); // 30秒
        },
        beforeDestroy() {
            // 页面卸载时清理定时器