From 5a5495cdeef4716cc20473f7929d386ee99a6285 Mon Sep 17 00:00:00 2001
From: 吴羡 <16976746+Xian-TT3@user.noreply.gitee.com>
Date: 星期五, 16 十月 2026 16:16:56 +0800
Subject: [PATCH] 撤回设备模块其他标签页的草稿自动保存,仅保留设备核查计划标签页:核查计划主页面、核查录入弹窗、核查记录弹窗、新增年计划弹窗 4 处保留编辑退出自动保存/恢复,其余 21 个组件恢复原状; management.vue(数采配置旧弹窗)与 calibration.vue(被注释导出按钮)仅保留此前已报备的死代码清理,草稿接线一并移除

---
 src/views/CNAS/resourceDemand/device/component/calibration.vue |   16 +---------------
 1 files changed, 1 insertions(+), 15 deletions(-)

diff --git a/src/views/CNAS/resourceDemand/device/component/calibration.vue b/src/views/CNAS/resourceDemand/device/component/calibration.vue
index f165298..6613757 100644
--- a/src/views/CNAS/resourceDemand/device/component/calibration.vue
+++ b/src/views/CNAS/resourceDemand/device/component/calibration.vue
@@ -265,7 +265,6 @@
 } from '@/api/cnas/resourceDemand/device.js'
 import { selectQualifiedSupplierManagementPage } from '@/api/cnas/externalService/supplierManage/supplierManage'
 import { mapGetters } from "@/utils/store-compat";
-import draftSave from '@/mixins/draftSave'
 export default {
   props: {
     clickNodeVal: {
@@ -275,7 +274,6 @@
       }
     }
   },
-  mixins: [draftSave],
   data() {
     return {
       value: "",
@@ -408,10 +406,7 @@
     add(type) {
       this.operationType = type
       this.dialogVisible1 = true
-      this.draftRestore('calibrationRecord', 'calibrationRecord', '', 'dialogVisible1')
-      this.getXmsg().then(() => {
-        this.draftRestore('calibrationRecordParams', 'calibrateParams', '', 'dialogVisible1')
-      })
+      this.getXmsg()
     },
     // 鏌ョ湅璇︽儏
     handleViewClick(type, row) {
@@ -468,9 +463,6 @@
     calibrationMaintenance() {
       this.dialogVisible0 = true
       this.getXmsg();
-      this.$nextTick(() => {
-        this.draftRestore('calibrationMaintain', 'form0', this.clickNodeVal.value, 'dialogVisible0')
-      })
     },
     // 鑾峰彇璁惧鏍″噯鍙傛暟table淇℃伅
     async getXmsg() {
@@ -517,8 +509,6 @@
             if (res.code == 200) {
               this.$message.success('淇濆瓨鎴愬姛')
               this.$refs['form0'].resetFields()
-              this.draftClear('calibrationMaintain')
-              this.draftRestore('calibrationMaintain', 'form0', this.clickNodeVal.value, 'dialogVisible0')
               this.getXmsg() // 鍒锋柊璁惧鏍″噯鍙傛暟琛ㄦ牸
             }
             this.calibrateParamsLoading = false
@@ -550,8 +540,6 @@
             addOrUpdateDeviceMetricRecord(this.calibrationRecord).then(res => {
               if (res.code == 200) {
                 this.$message.success('娣诲姞鎴愬姛')
-                this.draftClear('calibrationRecord')
-                this.draftClear('calibrationRecordParams')
                 this.dialogVisible1 = false
                 this.getTableList(this.clickNodeVal.value)
               }
@@ -606,8 +594,6 @@
     },
     dialogVisible1(newVal) {
       if (newVal === false) {
-        this.draftStop('calibrationRecord')
-        this.draftStop('calibrationRecordParams')
         this.calibrateParams = []
         this.calibrationRecord = {
           unitOfMeasure: '', // 璁¢噺鍗曚綅

--
Gitblit v1.9.3