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/files.vue | 17 +----------------
1 files changed, 1 insertions(+), 16 deletions(-)
diff --git a/src/views/CNAS/resourceDemand/device/component/files.vue b/src/views/CNAS/resourceDemand/device/component/files.vue
index bb231a9..4228c5f 100644
--- a/src/views/CNAS/resourceDemand/device/component/files.vue
+++ b/src/views/CNAS/resourceDemand/device/component/files.vue
@@ -5,7 +5,7 @@
<h4><span class="line"></span><span>璁惧妗f</span></h4>
<div class="btns">
<el-button type="primary" size="small" @click="openEditForm" style="">淇妗f</el-button>
- <el-button type="primary" size="small" @click="openAddFileDia" style="">娣诲姞闄勪欢</el-button>
+ <el-button type="primary" size="small" @click="dialogVisible1 = true" style="">娣诲姞闄勪欢</el-button>
<el-button type="primary" size="small" @click="deviceDialog = true" style="">鏌ョ湅璁惧浜岀淮鐮�</el-button>
<el-button type="primary" size="small" @click="handleDownOne" style="">瀵煎嚭</el-button>
</div>
@@ -504,9 +504,7 @@
} from '@/api/cnas/resourceDemand/device.js'
import { selectUserCondition } from "@/api/business/inspectionTask";
import { selectQualifiedSupplierManagementPage } from '@/api/cnas/externalService/supplierManage/supplierManage'
-import draftSave from '@/mixins/draftSave'
export default {
- mixins: [draftSave],
props: {
clickNodeVal: {
type: Object,
@@ -684,14 +682,6 @@
})
this.fileList.push(obj)
}
- this.draftRestore('fileAdd', 'addFile', row.id, 'dialogVisible1')
- },
- // 鎵撳紑娣诲姞闄勪欢寮圭獥
- openAddFileDia() {
- this.dialogVisible1 = true
- this.$nextTick(() => {
- this.draftRestore('fileAdd', 'addFile', this.clickNodeVal.value, 'dialogVisible1')
- })
},
handleDeleteClick(row) {
// 鍒犻櫎閫昏緫
@@ -722,7 +712,6 @@
updateDocument(this.addFile).then(res => {
if (res.code == 200) {
this.$message.success('鏇存柊鎴愬姛')
- this.draftClear('fileAdd')
this.dialogVisible1 = false;
this.getPage()
}
@@ -732,7 +721,6 @@
addDocument(this.addFile).then(res => {
if (res.code == 200) {
this.$message.success('淇濆瓨鎴愬姛')
- this.draftClear('fileAdd')
this.dialogVisible1 = false;
this.getPage()
}
@@ -816,7 +804,6 @@
this.editData = JSON.parse(JSON.stringify(this.Mdata))
this.$nextTick(() => {
this.dialogVisible = true
- this.draftRestore('fileRevision', 'editData', this.clickNodeVal.value, 'dialogVisible')
})
},
// 涓嬫鏃ユ湡 = 鏈�杩戞棩鏈� + 鍛ㄦ湡锛堟湀锛夛紝鑷姩璁$畻
@@ -888,7 +875,6 @@
upDeviceParameter(formData).then(res => {
this.$message.success('淇敼鎴愬姛')
this.upLoad = false
- this.draftClear('fileRevision')
this.getList(this.clickNodeVal.value)
this.dialogVisible = false
}).catch(e => {
@@ -991,7 +977,6 @@
},
dialogVisible1(newVal) {
if (newVal == false) {
- this.draftStop('fileAdd')
this.isAddFileUpdate = false
this.addFile = {}
this.fileList = []
--
Gitblit v1.9.3