src/views/CNAS/resourceDemand/device/component/calibration.vue
@@ -265,7 +265,6 @@
} from '@/api/cnas/resourceDemand/device.js'
import { selectQualifiedSupplierManagementPage } from '@/api/cnas/externalService/supplierManage/supplierManage'
import { mapGetters } from "@/utils/store-compat";
import draftSave from '@/mixins/draftSave'
export default {
  props: {
    clickNodeVal: {
@@ -275,7 +274,6 @@
      }
    }
  },
  mixins: [draftSave],
  data() {
    return {
      value: "",
@@ -408,10 +406,7 @@
    add(type) {
      this.operationType = type
      this.dialogVisible1 = true
      this.draftRestore('calibrationRecord', 'calibrationRecord', '', 'dialogVisible1')
      this.getXmsg().then(() => {
        this.draftRestore('calibrationRecordParams', 'calibrateParams', '', 'dialogVisible1')
      })
      this.getXmsg()
    },
    // 查看详情
    handleViewClick(type, row) {
@@ -468,9 +463,6 @@
    calibrationMaintenance() {
      this.dialogVisible0 = true
      this.getXmsg();
      this.$nextTick(() => {
        this.draftRestore('calibrationMaintain', 'form0', this.clickNodeVal.value, 'dialogVisible0')
      })
    },
    // 获取设备校准参数table信息
    async getXmsg() {
@@ -517,8 +509,6 @@
            if (res.code == 200) {
              this.$message.success('保存成功')
              this.$refs['form0'].resetFields()
              this.draftClear('calibrationMaintain')
              this.draftRestore('calibrationMaintain', 'form0', this.clickNodeVal.value, 'dialogVisible0')
              this.getXmsg() // 刷新设备校准参数表格
            }
            this.calibrateParamsLoading = false
@@ -550,8 +540,6 @@
            addOrUpdateDeviceMetricRecord(this.calibrationRecord).then(res => {
              if (res.code == 200) {
                this.$message.success('添加成功')
                this.draftClear('calibrationRecord')
                this.draftClear('calibrationRecordParams')
                this.dialogVisible1 = false
                this.getTableList(this.clickNodeVal.value)
              }
@@ -606,8 +594,6 @@
    },
    dialogVisible1(newVal) {
      if (newVal === false) {
        this.draftStop('calibrationRecord')
        this.draftStop('calibrationRecordParams')
        this.calibrateParams = []
        this.calibrationRecord = {
          unitOfMeasure: '', // 计量单位