소스 검색

登录日志页不需要新增修改的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