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/equipmentVerificationPlan.vue | 36 +++++++++++++-----------------------
1 files changed, 13 insertions(+), 23 deletions(-)
diff --git a/src/views/CNAS/resourceDemand/device/component/equipmentVerificationPlan.vue b/src/views/CNAS/resourceDemand/device/component/equipmentVerificationPlan.vue
index a4a37a4..0aa34b9 100644
--- a/src/views/CNAS/resourceDemand/device/component/equipmentVerificationPlan.vue
+++ b/src/views/CNAS/resourceDemand/device/component/equipmentVerificationPlan.vue
@@ -202,15 +202,10 @@
</span></template>
</el-dialog>
<el-dialog v-model="downloadDialog" title="瀵煎嚭" width="600px">
- <div class="down-row">
- <span>1銆佷华鍣ㄨ澶囨湡闂存牳鏌ヨ褰曡〃锛堟牳鏌ヨ褰曪級</span>
- <el-button type="primary" :loading="outLoading" :disabled="!downRow.recordStatus" @click="controlDown">瀵� 鍑�</el-button>
- </div>
- <div class="down-row">
- <span>2銆佷华鍣ㄨ澶囨湡闂存牳鏌ユ瘮瀵硅褰曡〃锛堟瘮瀵硅褰曪級</span>
- <el-button type="primary" :loading="outLoading" :disabled="!downRow.recordContrastStatus" @click="processingDown">瀵� 鍑�</el-button>
- </div>
- <div class="down-tip">缃伆琛ㄧず瀵瑰簲璁板綍灏氭湭褰曞叆锛堢姸鎬佷负"鏈紑濮�"锛夛紝璇峰厛鐐�"璁板綍"/"瀵规瘮"褰曞叆鍚庡啀瀵煎嚭</div>
+ <span>
+ <el-button :loading="outLoading" type="primary" :disabled="!downRow.recordStatus" @click="controlDown">鏍告煡璁板綍</el-button>
+ <el-button :loading="outLoading" type="primary" :disabled="!downRow.recordContrastStatus" @click="processingDown">鏍告煡姣斿璁板綍</el-button>
+ </span>
<template #footer><span class="dialog-footer">
<el-button @click="downloadDialog = false">鍙� 娑�</el-button>
</span></template>
@@ -254,10 +249,12 @@
} from '@/api/cnas/resourceDemand/device.js'
import { selectUserCondition } from "@/api/performance/class";
import { mapGetters } from "@/utils/store-compat";
+import draftSave from '@/mixins/draftSave'
export default {
name: "equipment-verification-plan",
// import 寮曞叆鐨勭粍浠堕渶瑕佹敞鍏ュ埌瀵硅薄涓墠鑳戒娇鐢�
components: { AddVerificationYearPlanDia, CheckRecord, EquipmentCheck },
+ mixins: [draftSave],
props: {
clickNodeVal: {
type: Object,
@@ -500,6 +497,9 @@
if (this.operationType !== 'add') {
this.$nextTick(() => {
this.form = this.HaveJson(row)
+ if (this.operationType !== 'view') {
+ this.draftRestore('equipmentVerificationPlan', 'form', this.form.planDetailsId, 'dialogVisible')
+ }
})
} else {
this.form = {
@@ -515,6 +515,7 @@
planId: this.currentRow.planId,
planDetailsId: '',
}
+ this.draftRestore('equipmentVerificationPlan', 'form', this.form.planId, 'dialogVisible')
}
},
// 鎻愪氦琛ㄥ崟
@@ -526,6 +527,7 @@
addDeviceExaminePlanDetail(this.form).then(res => {
if (res.code == 200) {
this.$message.success('鏂板鎴愬姛')
+ this.draftClear('equipmentVerificationPlan')
this.dialogVisible = false
this.getYearTableData()
}
@@ -538,6 +540,7 @@
updateDeviceExaminePlanDetail(this.form).then(res => {
if (res.code == 200) {
this.$message.success('鏂板鎴愬姛')
+ this.draftClear('equipmentVerificationPlan')
this.dialogVisible = false
this.getYearTableData()
}
@@ -569,6 +572,7 @@
})
},
resetForm() {
+ this.draftStop('equipmentVerificationPlan')
this.$refs.modelForm.resetFields();
this.dialogVisible = false
},
@@ -717,19 +721,5 @@
height: 16px;
background-color: var(--el-color-primary);
border-radius: 2px;
-}
-
-.down-row {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 8px 4px;
- border-bottom: 1px solid #ebeef5;
-}
-
-.down-tip {
- margin-top: 10px;
- color: #909399;
- font-size: 12px;
}
</style>
--
Gitblit v1.9.3