Browse Source

检查记录

licailing 4 years ago
parent
commit
7ddf7c1830
1 changed files with 6 additions and 7 deletions
  1. 6 7
      src/main/vue/src/views/record/RecordCheck.vue

+ 6 - 7
src/main/vue/src/views/record/RecordCheck.vue

@@ -59,9 +59,9 @@ export default {
                     {
                     {
                         size: 20,
                         size: 20,
                         sort: 'createdAt,asc',
                         sort: 'createdAt,asc',
-                        query: {recordId: this.recordId}
+                        query: { recordId: this.recordId }
                     },
                     },
-                    {body: 'json'}
+                    { body: 'json' }
                 )
                 )
                 .then(res => {
                 .then(res => {
                     if (res.content.length > 0) {
                     if (res.content.length > 0) {
@@ -111,7 +111,7 @@ export default {
         submit() {
         submit() {
             this.saving = true;
             this.saving = true;
             this.$http
             this.$http
-                .post('/recordCheck/batchSave', {checks: this.saveOtherJson})
+                .post('/recordCheck/batchSave', { checks: this.saveOtherJson })
                 .then(res => {
                 .then(res => {
                     this.saving = false;
                     this.saving = false;
                     this.$message.success('成功');
                     this.$message.success('成功');
@@ -124,7 +124,7 @@ export default {
                 });
                 });
         },
         },
         onDelete() {
         onDelete() {
-            this.$alert('删除将无法恢复,确认要删除么?', '警告', {type: 'error'})
+            this.$alert('删除将无法恢复,确认要删除么?', '警告', { type: 'error' })
                 .then(() => {
                 .then(() => {
                     return this.$http.post(`/recordCheck/del/${this.formData.id}`);
                     return this.$http.post(`/recordCheck/del/${this.formData.id}`);
                 })
                 })
@@ -146,7 +146,7 @@ export default {
             });
             });
         },
         },
         onDeleteOtherForm(info, index) {
         onDeleteOtherForm(info, index) {
-            this.$alert('删除将无法恢复,确认要删除么?', '警告', {type: 'warning'})
+            this.$alert('删除将无法恢复,确认要删除么?', '警告', { type: 'warning' })
                 .then(() => {
                 .then(() => {
                     const checks = [...this.checks];
                     const checks = [...this.checks];
                     if (info.id) {
                     if (info.id) {
@@ -158,8 +158,7 @@ export default {
                     this.checks = checks;
                     this.checks = checks;
                     this.$message.success('删除成功');
                     this.$message.success('删除成功');
                 })
                 })
-                .catch(e => {
-                });
+                .catch(e => {});
         }
         }
     }
     }
 };
 };