| | |
| | | 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' ? '添加失败!' : '修改失败!') |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | }, |