loulijun2021
2024-05-08 458b9f4219e476a69edc973b50a4b411edbf11e2
src/views/deviceManager/deviceList.vue
@@ -690,17 +690,18 @@
            group: '',
            description: ''
          }]
          AddUpdateDeviceType(data, this.dialogClassForm.OperType).then(res => {
            if (res.code === '200') {
              this.$notify.success(this.operation === 'add' ? '添加成功!' : '修改成功!')
              this.dialogClassVisible = false
              this.$store.state.app.buttonIsDisabled = false
              this.getDeviceTypeSearch()
            } else {
              this.$store.state.app.buttonIsDisabled = false
              this.$notify.error(this.operation === 'add' ? '添加失败!' : '修改失败!')
            }
          })
          AddUpdateDeviceType(data, this.dialogClassForm.OperType)
            .then(res => {
              if (res.code === '200') {
                this.$notify.success(this.operation === 'add' ? '添加成功!' : '修改成功!')
                this.dialogClassVisible = false
                this.$store.state.app.buttonIsDisabled = false
                this.getDeviceTypeSearch()
              } else {
                this.$store.state.app.buttonIsDisabled = false
                this.$notify.error(this.operation === 'add' ? '添加失败!' : '修改失败!')
              }
            })
        }
      })
    },