Просмотр исходного кода

Merge branch 'dev' of http://git.ycjcjy.com/SpaceOfCheng/admin into dev

zjxpcyc 6 лет назад
Родитель
Сommit
637a26301d
2 измененных файлов: 6 добавлений и 4 удалений
  1. 3
    4
      src/pages/system/library/borrow/bookreturn.vue
  2. 3
    0
      src/util/util.js

+ 3
- 4
src/pages/system/library/borrow/bookreturn.vue Просмотреть файл

@@ -102,7 +102,9 @@ export default {
102 102
         })
103 103
         return
104 104
       }
105
-
105
+      this.getList()
106
+    },
107
+    getList () {
106 108
       this.getBorrowHistory({ customerInfo: this.customerInfo })
107 109
         .then(() => {
108 110
           this.active = 1
@@ -114,9 +116,6 @@ export default {
114 116
             type: 'error'
115 117
           })
116 118
         })
117
-      this.getList()
118
-    },
119
-    getList () {
120 119
       this.getUserReturn({ customerInfo: this.customerInfo, page: 1, pagesize: 1000 })
121 120
         .then(() => {
122 121
 

+ 3
- 0
src/util/util.js Просмотреть файл

@@ -4,6 +4,9 @@ import api from './api'
4 4
 // import store from '../store'
5 5
 const toolClass = {
6 6
   dateFormat: (timestamp, fmt) => {
7
+    if (timestamp === '0001-01-01T00:00:00Z') {
8
+      return ''
9
+    }
7 10
     if (!fmt) {
8 11
       fmt = 'yyyy-MM-dd hh:mm'
9 12
     }