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/applicationForm.vue | 12 ------------
1 files changed, 0 insertions(+), 12 deletions(-)
diff --git a/src/views/CNAS/resourceDemand/device/component/applicationForm.vue b/src/views/CNAS/resourceDemand/device/component/applicationForm.vue
index 744f2ee..290e701 100644
--- a/src/views/CNAS/resourceDemand/device/component/applicationForm.vue
+++ b/src/views/CNAS/resourceDemand/device/component/applicationForm.vue
@@ -115,12 +115,10 @@
addDeviceExternalApply,
} from '@/api/cnas/resourceDemand/device.js'
import { selectUserCondition } from "@/api/business/inspectionTask";
-import draftSave from '@/mixins/draftSave'
export default {
name: "applicationForm",
// import 寮曞叆鐨勭粍浠堕渶瑕佹敞鍏ュ埌瀵硅薄涓墠鑳戒娇鐢�
components: {},
- mixins: [draftSave],
data() {
// 杩欓噷瀛樻斁鏁版嵁
return {
@@ -167,17 +165,12 @@
this.getUserList()
if (this.form.externalApplyId) {
this.searchInfo()
- } else {
- this.$nextTick(() => {
- this.draftRestore('applicationForm', 'form', '', 'dialogVisible')
- })
}
},
// 鏌ヨ璇︽儏
searchInfo() {
getDeviceExternalApply({ externalApplyId: this.form.externalApplyId }).then(res => {
if (res.code === 200) {
- const externalApplyId = this.form.externalApplyId
this.form = { ...res.data }
if (res.data.isFinish === 0) {
if (this.form.departmentHeadUserId) {
@@ -196,9 +189,6 @@
this.currentStep = 4
this.showStep = 3
}
- this.$nextTick(() => {
- this.draftRestore('applicationForm', 'form', externalApplyId, 'dialogVisible')
- })
}
}).catch(error => {
console.error(error)
@@ -215,7 +205,6 @@
addDeviceExternalApply(this.form).then(res => {
if (res.code == 200) {
this.$message.success('鏂板鎴愬姛')
- this.draftClear('applicationForm')
this.resetForm()
}
this.submitFormLoading = false
@@ -227,7 +216,6 @@
},
// 鍏抽棴寮规
resetForm() {
- this.draftStop('applicationForm')
this.dialogVisible = false
this.$emit('closeDialog')
},
--
Gitblit v1.9.3