src/views/CNAS/resourceDemand/device/component/checkRecord.vue
@@ -229,10 +229,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: "check-record",
  // import 引入的组件需要注入到对象中才能使用
  components: {},
  mixins: [draftSave],
  data() {
    // 这里存放数据
    return {
@@ -319,6 +321,10 @@
            this.currentStep = 2
          }
          this.reviewUserId = this.form.reviewUserId
          this.$nextTick(() => {
            this.draftRestore('checkRecordForm', 'form', this.form.planDetailsId, 'dialogVisible')
            this.draftRestore('checkRecordRows', 'recordDetailList', this.form.planDetailsId, 'dialogVisible')
          })
        }
      }).catch(error => {
        console.error(error)
@@ -340,6 +346,8 @@
      addExamineRecord(this.form).then(res => {
        if (res.code == 200) {
          this.$message.success('新增成功')
          this.draftClear('checkRecordForm')
          this.draftClear('checkRecordRows')
          this.resetForm()
        }
        this.submitFormLoading = false
@@ -356,6 +364,8 @@
      reviewExamineRecord(params).then(res => {
        if (res.code == 200) {
          this.$message.success('审核成功')
          this.draftClear('checkRecordForm')
          this.draftClear('checkRecordRows')
          this.resetForm()
        }
        this.submitFormLoading = false
@@ -364,6 +374,8 @@
      })
    },
    resetForm() {
      this.draftStop('checkRecordForm')
      this.draftStop('checkRecordRows')
      this.dialogVisible = false
      this.$emit('closeDialog1')
    },