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/acceptanceForm.vue | 11 -----------
1 files changed, 0 insertions(+), 11 deletions(-)
diff --git a/src/views/CNAS/resourceDemand/device/component/acceptanceForm.vue b/src/views/CNAS/resourceDemand/device/component/acceptanceForm.vue
index a0d204e..331d207 100644
--- a/src/views/CNAS/resourceDemand/device/component/acceptanceForm.vue
+++ b/src/views/CNAS/resourceDemand/device/component/acceptanceForm.vue
@@ -79,12 +79,10 @@
updateDeviceAcceptance,
} from '@/api/cnas/resourceDemand/device.js'
import { selectUserCondition } from "@/api/business/inspectionTask";
-import draftSave from '@/mixins/draftSave'
export default {
name: "acceptance-form",
// import 寮曞叆鐨勭粍浠堕渶瑕佹敞鍏ュ埌瀵硅薄涓墠鑳戒娇鐢�
components: {},
- mixins: [draftSave],
data() {
// 杩欓噷瀛樻斁鏁版嵁
return {
@@ -124,19 +122,13 @@
this.getUserList()
if (this.form.acceptanceId) {
this.searchInfo()
- } else if (this.operationType !== 'view') {
- this.draftRestore('acceptanceForm', 'form', this.form.deviceId, 'dialogVisible')
}
},
// 鏌ヨ璇︽儏
searchInfo() {
getDeviceAcceptance({ acceptanceId: this.form.acceptanceId }).then(res => {
if (res.code === 200) {
- const id = this.form.acceptanceId
this.form = { ...res.data }
- if (this.operationType !== 'view') {
- this.draftRestore('acceptanceForm', 'form', id, 'dialogVisible')
- }
}
}).catch(error => {
console.error(error)
@@ -150,7 +142,6 @@
addDeviceAcceptance(this.form).then(res => {
if (res.code == 200) {
this.$message.success('鏂板鎴愬姛')
- this.draftClear('acceptanceForm')
this.resetForm()
}
this.submitFormLoading = false
@@ -161,7 +152,6 @@
updateDeviceAcceptance(this.form).then(res => {
if (res.code == 200) {
this.$message.success('淇敼鎴愬姛')
- this.draftClear('acceptanceForm')
this.resetForm()
}
this.submitFormLoading = false
@@ -174,7 +164,6 @@
},
// 鍏抽棴寮规
resetForm() {
- this.draftStop('acceptanceForm')
this.dialogVisible = false
this.$emit('closeDialog')
},
--
Gitblit v1.9.3