浏览代码

登录日志页不需要新增修改的submit方法

linwenxiang 4 年之前
父节点
当前提交
34d907fbdb
共有 1 个文件被更改,包括 0 次插入28 次删除
  1. 0 28
      src/views/loginlog/index.vue

+ 0 - 28
src/views/loginlog/index.vue

@@ -275,34 +275,6 @@ export default {
         this.isEdit = true
       })
     },
-    /** 提交按钮 */
-    submitForm: function() {
-      this.$refs['form'].validate(valid => {
-        if (valid) {
-          if (this.form.ID !== undefined) {
-            updateSysLoginlog(this.form).then(response => {
-              if (response.code === 200) {
-                this.msgSuccess('修改成功')
-                this.open = false
-                this.getList()
-              } else {
-                this.msgError(response.msg)
-              }
-            })
-          } else {
-            addSysLoginlog(this.form).then(response => {
-              if (response.code === 200) {
-                this.msgSuccess('新增成功')
-                this.open = false
-                this.getList()
-              } else {
-                this.msgError(response.msg)
-              }
-            })
-          }
-        }
-      })
-    },
     /** 删除按钮操作 */
     handleDelete(row) {
       var Ids = (row.ID && [row.ID]) || this.ids