src/views/CNAS/resourceDemand/device/component/record.vue
@@ -157,7 +157,9 @@
  deleteDeviceRecord,
} from '@/api/cnas/resourceDemand/device.js'
import { selectUserCondition } from "@/api/business/inspectionTask";
import draftSave from '@/mixins/draftSave'
export default {
  mixins: [draftSave],
  props: {
    clickNodeVal: {
      type: Object,
@@ -270,6 +272,8 @@
      this.outLoading = true
      exportUseRecord({
        deviceId: this.clickNodeVal.value,
        sampleCode: this.search.sampleCode,
        managementNumber: this.search.managementNumber,
        exportDate: this.exportDate
      }).then(res => {
        this.outLoading = false
@@ -286,6 +290,7 @@
        this.form.managementNumber = res.data.managementNumber
        this.$nextTick(() => {
          this.$refs['form'].clearValidate()
          this.draftRestore('record', 'form', '', 'dialogVisible')
        })
      });
    },
@@ -307,6 +312,7 @@
              if (res.code == 200) {
                this.$message.success('新增成功')
                this.getTableList(this.clickNodeVal.value)
                this.draftClear('record')
                this.dialogVisible = false
              }
            })
@@ -316,6 +322,7 @@
              if (res.code == 200) {
                this.$message.success('修改成功')
                this.getTableList(this.clickNodeVal.value)
                this.draftClear('record')
                this.dialogVisible = false
              }
            })
@@ -341,6 +348,9 @@
      list.push(row.useStartDate)
      list.push(row.useEndDate)
      this.form['useDateList'] = list
      if (type === 'edit') {
        this.draftRestore('record', 'form', this.form.id, 'dialogVisible')
      }
    },
    handleDeleteClick(index, row) {
      this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', {
@@ -377,6 +387,7 @@
    },
    dialogVisible(newVal) {
      if (newVal === false) {
        this.draftStop('record')
        this.form = {
          // deviceId:'',
          sampleCode: '',