gaosp
2024-01-16 cb60b30e899aea2db91bd8cc0272df7508e12fa4
update
已修改1个文件
26 ■■■■■ 文件已修改
src/container/machineList/Manage-add-update.vue 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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
                //         }
                //     })
                // })
            }
            })
        }
    }
}