gaosp
2024-01-16 cb60b30e899aea2db91bd8cc0272df7508e12fa4
src/container/machineList/Manage-add-update.vue
@@ -161,23 +161,17 @@
      },
      /* 提交*/
      dataFormSubmit() {
         if (this.dataForm.id === '') { // 新增
            getRequest('machineSave',this.dataForm).then(res  => {
         getRequest('machineUpdate',this.dataForm).then(res  => {
            this.$message({
               message: '修改成功',
               type: 'success',
               duration: 1500,
               onClose: () => {
                  this.$emit('confirm')
                  this.visible = false
               }
            })
         } else {
            // deviceTypeUpdate(this.dataForm).then(res => {
            //    this.$message({
            //       message: '修改成功',
            //       type: 'success',
            //       duration: 1500,
            //       onClose: () => {
            //          this.$emit('confirm')
            //          this.visible = false
            //       }
            //    })
            // })
         }
         })
      }
   }
}