|
@@ -1276,6 +1276,21 @@ export default {
|
|
this.getEqptDataPage()
|
|
this.getEqptDataPage()
|
|
this.getPPI()
|
|
this.getPPI()
|
|
},
|
|
},
|
|
|
|
+ beforeUnmount () {
|
|
|
|
+ // 清除定时器
|
|
|
|
+ if (this.autoSaveTimer) {
|
|
|
|
+ clearInterval(this.autoSaveTimer);
|
|
|
|
+ this.autoSaveTimer = null;
|
|
|
|
+ }
|
|
|
|
+ if (this.autoSaveImpTimer) {
|
|
|
|
+ clearInterval(this.autoSaveImpTimer);
|
|
|
|
+ this.autoSaveImpTimer = null;
|
|
|
|
+ }
|
|
|
|
+ if (this.autoSaveNonSTimer) {
|
|
|
|
+ clearInterval(this.autoSaveNonSTimer);
|
|
|
|
+ this.autoSaveNonSTimer = null;
|
|
|
|
+ }
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
startAutoSave() {
|
|
startAutoSave() {
|
|
if (this.autoSaveAtive) {
|
|
if (this.autoSaveAtive) {
|