许成详 6 years ago
parent
commit
13da802eca
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/pages/page3.vue

+ 2
- 2
src/pages/page3.vue View File

178
       'emptyPageDetail'
178
       'emptyPageDetail'
179
     ]),
179
     ]),
180
     newData (info) {
180
     newData (info) {
181
-      if (info.classId === '1' && this.users.filter(x => x.classId === '1').length > 0) {
181
+      if (info.classId - 0 === 1 && this.users.filter(x => x.classId - 0 === 1).length > 0) {
182
         this.users = this.users.map((x) => {
182
         this.users = this.users.map((x) => {
183
-          if (x.classId === '1') {
183
+          if (x.classId - 0 === 1) {
184
             return { ...x, createdata: Date.parse(new Date()) }
184
             return { ...x, createdata: Date.parse(new Date()) }
185
           } else {
185
           } else {
186
             return x
186
             return x