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/operationInstruction.vue | 23 ++---------------------
1 files changed, 2 insertions(+), 21 deletions(-)
diff --git a/src/views/CNAS/resourceDemand/device/component/operationInstruction.vue b/src/views/CNAS/resourceDemand/device/component/operationInstruction.vue
index 31b74e7..c373600 100644
--- a/src/views/CNAS/resourceDemand/device/component/operationInstruction.vue
+++ b/src/views/CNAS/resourceDemand/device/component/operationInstruction.vue
@@ -3,7 +3,7 @@
<div>
<div style="margin: 10px 0;text-align: right">
<el-button size="small" type="primary" @click="getList">鍒锋柊</el-button>
- <el-button size="small" type="primary" @click="openInstructionDia">鍙楁帶鐢宠</el-button>
+ <el-button size="small" type="primary" @click="dialogVisible = true">鍙楁帶鐢宠</el-button>
</div>
<el-table :data="tableData" border height="calc(100vh - 18em)"
>
@@ -188,9 +188,7 @@
pageByPageQueryOfHomeworkInstructions,
selectDeviceParameter,
} from '@/api/cnas/resourceDemand/device.js'
-import draftSave from '@/mixins/draftSave'
export default {
- mixins: [draftSave],
props: {
clickNodeVal: {
type: Object,
@@ -261,8 +259,6 @@
},
dialogVisible(newVal) {
if (newVal === false) {
- this.draftStop('instructionForm')
- this.draftStop('instructionRows')
this.instructionForm = {}
this.documentTableData = []
this.fileList1 = []
@@ -341,17 +337,7 @@
this.documentTableData.forEach((v, k) => {
v.index = k
})
- this.draftRestore('instructionForm', 'instructionForm', row.instructionId, 'dialogVisible')
- this.draftRestore('instructionRows', 'documentTableData', row.instructionId, 'dialogVisible')
}
- })
- },
- // 鎵撳紑鍙楁帶鐢宠寮圭獥锛堟柊澧烇級
- openInstructionDia() {
- this.dialogVisible = true
- this.$nextTick(() => {
- this.draftRestore('instructionForm', 'instructionForm', '', 'dialogVisible')
- this.draftRestore('instructionRows', 'documentTableData', '', 'dialogVisible')
})
},
handleSizeChange(val) {
@@ -369,8 +355,6 @@
newHomeworkGuidebookAdded(this.instructionForm).then(res => {
if (res.code == 200) {
this.$message.success('鎿嶄綔鎴愬姛锛�')
- this.draftClear('instructionForm')
- this.draftClear('instructionRows')
this.dialogVisible = false
this.getList()
}
@@ -412,7 +396,6 @@
addFile() {
this.$refs.form.validate((valid) => {
if (valid) {
- this.draftClear('instructionRowForm')
if (this.tableDataIndex !== undefined) {
this.documentTableData[this.tableDataIndex] = this.form
this.dialogVisible1 = false;
@@ -435,7 +418,7 @@
this.form.deviceName = this.clickNodeVal.label
this.onDeviceNameChange()
this.fileList = []
- this.draftRestore('instructionRowForm', 'form', '', 'dialogVisible1')
+
},
editFun(row, index) {
this.form = { ...row }
@@ -446,10 +429,8 @@
this.fileList.push({ name: this.form.fileName })
}
this.dialogVisible1 = true
- this.draftRestore('instructionRowForm', 'form', row.id !== undefined ? row.id : ('row' + index), 'dialogVisible1')
},
closeDia() {
- this.draftStop('instructionRowForm')
this.dialogVisible1 = false
this.$refs['form'].resetFields()
this.fileList = []
--
Gitblit v1.9.3