| | |
| | | }, |
| | | /* 提交*/ |
| | | dataFormSubmit() { |
| | | if (this.dataForm.id === '') { // 新增 |
| | | getRequest('machineSave',this.dataForm).then(res => { |
| | | |
| | | }) |
| | | } else { |
| | | // deviceTypeUpdate(this.dataForm).then(res => { |
| | | // this.$message({ |
| | | // message: '修改成功', |
| | | // type: 'success', |
| | | // duration: 1500, |
| | | // onClose: () => { |
| | | // this.$emit('confirm') |
| | | // this.visible = false |
| | | // } |
| | | // }) |
| | | // }) |
| | | getRequest('machineUpdate',this.dataForm).then(res => { |
| | | this.$message({ |
| | | message: '修改成功', |
| | | type: 'success', |
| | | duration: 1500, |
| | | onClose: () => { |
| | | this.$emit('confirm') |
| | | this.visible = false |
| | | } |
| | | }) |
| | | }) |
| | | } |
| | | } |
| | | } |