src/views/CNAS/resourceDemand/device/component/fault.vue
@@ -279,9 +279,7 @@
<script>
import { dateFormat } from '@/utils/date'
import { mapGetters } from "@/utils/store-compat";
import draftSave from '@/mixins/draftSave'
export default {
  mixins: [draftSave],
  props: {
    clickNodeVal: {
      type: Object,
@@ -409,7 +407,6 @@
          }).then(res => {
            if (res.code == 200) {
              this.$message.success('提交成功')
              this.draftClear('fault')
              this.getTableList(this.clickNodeVal.value)
              this.dialogVisible = false
            }
@@ -434,11 +431,6 @@
        this.form.manufacturer = res.data.manufacturer
        this.form.specificationModel = res.data.specificationModel
        this.form.managementNumber = res.data.managementNumber
        if (!this.form.id) {
          this.draftRestore('fault', 'form', this.clickNodeVal.value, 'dialogVisible')
        } else if (this.currentStep === 0) {
          this.draftRestore('fault', 'form', this.form.id, 'dialogVisible')
        }
      });
      // 获取负责人信息
      this.getUserList()
@@ -588,7 +580,6 @@
    },
    dialogVisible(newVal) {
      if (!newVal) {
        this.draftStop('fault')
        this.form = {}
        this.closeLoading()
        this.currentStep = 0 // 步骤条显示第几步